mirror of
https://github.com/octoleo/syncthing.git
synced 2024-12-23 03:18:59 +00:00
cmd/relaysrv: vet: composite literal uses unkeyed fields
This commit is contained in:
parent
0af216fea0
commit
d17608d0a0
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user