Show hs.c.conn == underlying instead

Most log points were added last month and are stable.
This commit is contained in:
RPRX
2023-02-09 21:39:09 +08:00
committed by GitHub
parent 02fa0dd5f6
commit 5a9e6c0cc2
+3 -3
View File
@@ -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