Skip to content

Commit a8bae3a

Browse files
committed
Transport/REALITY: suppress repetitive logs, add MITM error alert
1 parent e8539af commit a8bae3a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

transport/internet/reality/reality.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,8 @@ func UClient(c net.Conn, config *Config, ctx context.Context, dest net.Destinati
179179
if config.Show {
180180
fmt.Printf("REALITY localAddr: %v\tuConn.Verified: %v\n", localAddr, uConn.Verified)
181181
}
182-
if !uConn.Verified {
182+
if !uConn.Verified {
183+
errors.LogError(ctx, "REALITY: peer verification failed (potential MITM or redirection)")
183184
go func() {
184185
client := &http.Client{
185186
Transport: &http2.Transport{

0 commit comments

Comments
 (0)