From 448c984cf37ae827b31de77968a66866cb198bb8 Mon Sep 17 00:00:00 2001 From: wyx2685 Date: Tue, 10 Jun 2025 08:06:45 +0000 Subject: [PATCH] Fix missing config.Show check --- tls.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tls.go b/tls.go index 22d4960..f3f409e 100644 --- a/tls.go +++ b/tls.go @@ -385,7 +385,9 @@ func Server(ctx context.Context, conn net.Conn, config *Config) (*Conn, error) { postHandshakeRecord := hs.c.out.cipher.(aead).Seal(plainText[:5], hs.c.out.seq[:], plainText[5:], plainText[:5]) hs.c.out.incSeq() hs.c.write(postHandshakeRecord) - fmt.Printf("REALITY remoteAddr: %v\tlen(postHandshakeRecord): %v\n", remoteAddr, len(postHandshakeRecord)) + if config.Show { + fmt.Printf("REALITY remoteAddr: %v\tlen(postHandshakeRecord): %v\n", remoteAddr, len(postHandshakeRecord)) + } } hs.c.isHandshakeComplete.Store(true) break