From 5a9e6c0cc258666a5c8f0eef6a780e2319d753c6 Mon Sep 17 00:00:00 2001 From: RPRX <63339210+RPRX@users.noreply.github.com> Date: Thu, 9 Feb 2023 21:39:09 +0800 Subject: [PATCH] Show `hs.c.conn == underlying` instead Most log points were added last month and are stable. --- tls.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tls.go b/tls.go index 9255cb6..3174c01 100644 --- a/tls.go +++ b/tls.go @@ -253,10 +253,10 @@ func Server(conn net.Conn, config *Config) (*Conn, error) { hs.clientHello.keyShares[0].group = CurveID(i) break } + if config.Show { + fmt.Printf("REALITY remoteAddr: %v\ths.c.conn == underlying: %v\n", remoteAddr, hs.c.conn == underlying) + } if hs.c.conn == underlying { - if config.Show { - fmt.Printf("REALITY remoteAddr: %v\ths.c.conn: underlying\n", remoteAddr) - } done = true } break