add log for forwarded requests when auth failed

This commit is contained in:
mmmray
2024-04-29 18:46:12 -04:00
committed by yuhan6665
parent de1173cf2b
commit eed01aa642
+3
View File
@@ -208,6 +208,9 @@ func Server(ctx context.Context, conn net.Conn, config *Config) (*Conn, error) {
}
mutex.Unlock()
if hs.c.conn != conn {
if config.Show {
fmt.Printf("REALITY remoteAddr: %v\tforwarded SNI: %v\n", remoteAddr, hs.clientHello.serverName)
}
io.Copy(target, underlying)
}
waitGroup.Done()