From d17608d0a019c50d4179affd8ae97c4dfd320598 Mon Sep 17 00:00:00 2001 From: Jakob Borg Date: Thu, 2 Jun 2016 14:10:55 +0200 Subject: [PATCH] cmd/relaysrv: vet: composite literal uses unkeyed fields --- cmd/relaysrv/listener.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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()