Add tests for obfuscated2 clientside

This commit is contained in:
9seconds
2021-03-22 11:34:32 +03:00
parent 4d2d21e101
commit 69203f3e23
21 changed files with 320 additions and 22 deletions
+2 -6
View File
@@ -100,12 +100,8 @@ func (p *Proxy) doObfuscated2Handshake(ctx *streamContext) error {
return fmt.Errorf("cannot process client handshake: %w", err)
}
if dc < 0 {
dc = -dc
}
ctx.dc = int(dc)
ctx.logger = ctx.logger.BindInt("dc", ctx.dc)
ctx.dc = dc
ctx.logger = ctx.logger.BindInt("dc", dc)
ctx.clientConn = &obfuscated2.Conn{
Conn: ctx.clientConn,
Encryptor: encryptor,