Browse Source

REALITY client: Log invalid connections at warning level

Closes https://github.com/XTLS/Xray-core/issues/4001
pull/4010/head
RPRX 1 week ago committed by GitHub
parent
commit
1a238cbb7d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      transport/internet/reality/reality.go

2
transport/internet/reality/reality.go

@ -255,7 +255,7 @@ func UClient(c net.Conn, config *Config, ctx context.Context, dest net.Destinati
// Do not close the connection // Do not close the connection
}() }()
time.Sleep(time.Duration(randBetween(config.SpiderY[8], config.SpiderY[9])) * time.Millisecond) // return time.Sleep(time.Duration(randBetween(config.SpiderY[8], config.SpiderY[9])) * time.Millisecond) // return
return nil, errors.New("REALITY: processed invalid connection") return nil, errors.New("REALITY: processed invalid connection").AtWarning()
} }
return uConn, nil return uConn, nil
} }

Loading…
Cancel
Save