mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2024-09-06 09:02:32 +00:00
18 lines
340 B
Go
18 lines
340 B
Go
package obfs
|
|
|
|
type DummyObfuscator struct{}
|
|
|
|
func NewDummyObfuscator() *DummyObfuscator {
|
|
return &DummyObfuscator{}
|
|
}
|
|
|
|
func (x *DummyObfuscator) Deobfuscate(in []byte, out []byte) int {
|
|
if len(out) < len(in) {
|
|
return 0
|
|
}
|
|
return copy(out, in)
|
|
}
|
|
|
|
func (x *DummyObfuscator) Obfuscate(in []byte, out []byte) int {
|
|
return copy(out, in)
|
|
}
|