cmd/relaysrv: vet: composite literal uses unkeyed fields

This commit is contained in:
Jakob Borg 2016-06-02 14:10:55 +02:00
parent 0af216fea0
commit d17608d0a0

View File

@ -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()