feat: transport & obfs refactoring

This commit is contained in:
Toby
2021-12-27 18:07:01 -08:00
parent e32191a967
commit 1c06b66cdc
13 changed files with 260 additions and 254 deletions

View File

@@ -85,7 +85,7 @@ func client(config *clientConfig) {
auth = []byte(config.AuthString)
}
// Obfuscator
var obfuscator core.Obfuscator
var obfuscator obfs.Obfuscator
if len(config.Obfs) > 0 {
obfuscator = obfs.NewXPlusObfuscator([]byte(config.Obfs))
}