mirror of
https://github.com/XTLS/REALITY.git
synced 2025-08-22 22:48:36 +00:00
add log for forwarded requests when auth failed
This commit is contained in:
parent
de1173cf2b
commit
eed01aa642
3
tls.go
3
tls.go
@ -208,6 +208,9 @@ func Server(ctx context.Context, conn net.Conn, config *Config) (*Conn, error) {
|
|||||||
}
|
}
|
||||||
mutex.Unlock()
|
mutex.Unlock()
|
||||||
if hs.c.conn != conn {
|
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)
|
io.Copy(target, underlying)
|
||||||
}
|
}
|
||||||
waitGroup.Done()
|
waitGroup.Done()
|
||||||
|
Loading…
Reference in New Issue
Block a user