mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2024-12-26 20:26:06 +08:00
19 lines
340 B
Go
19 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)
|
|
}
|