0
0
mirror of https://github.com/XTLS/REALITY.git synced 2025-08-22 14:38:35 +00:00

add log for forwarded requests when auth failed

This commit is contained in:
mmmray 2024-04-29 16:52:27 +02:00 committed by yuhan6665
parent de1173cf2b
commit eed01aa642

3
tls.go
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()