diff --git a/cmd/relaysrv/listener.go b/cmd/relaysrv/listener.go index f73fa04c4..14895d66d 100644 --- a/cmd/relaysrv/listener.go +++ b/cmd/relaysrv/listener.go @@ -29,7 +29,9 @@ func listener(addr string, config *tls.Config) { log.Fatalln(err) } - listener := tlsutil.DowngradingListener{tcpListener, nil} + listener := tlsutil.DowngradingListener{ + Listener: tcpListener, + } for { conn, isTLS, err := listener.AcceptNoWrapTLS()