diff --git a/service/tcp.go b/service/tcp.go index 926274aa..bb6c4383 100644 --- a/service/tcp.go +++ b/service/tcp.go @@ -120,8 +120,8 @@ func NewShadowsocksStreamAuthenticator(ciphers CipherList, replayCache *ReplayCa if metrics == nil { metrics = &NoOpShadowsocksConnMetrics{} } - if logger == nil { - logger = &noopLogger{} + if l == nil { + l = &noopLogger{} } return func(clientConn transport.StreamConn) (string, transport.StreamConn, *onet.ConnectionError) { // Find the cipher and acess key id.