mirror of
https://github.com/ScuroNeko/mtg.git
synced 2026-08-31 15:34:01 +03:00
Debug direct connection
This commit is contained in:
+1
-1
@@ -36,8 +36,8 @@ func DirectInit(ctx context.Context, cancel context.CancelFunc, socket net.Conn,
|
||||
connOpts.ConnectionProto = mtproto.ConnectionProtocolAny
|
||||
connOpts.ClientAddr = conn.RemoteAddr()
|
||||
|
||||
conn = wrappers.NewCtx(ctx, cancel, conn)
|
||||
conn = wrappers.NewStreamCipher(conn, obfs2.Encryptor, obfs2.Decryptor)
|
||||
conn = wrappers.NewCtx(ctx, cancel, conn)
|
||||
|
||||
return conn, connOpts, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user