mirror of
https://github.com/octoleo/syncthing.git
synced 2025-01-10 18:24:44 +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)
|
log.Fatalln(err)
|
||||||
}
|
}
|
||||||
|
|
||||||
listener := tlsutil.DowngradingListener{tcpListener, nil}
|
listener := tlsutil.DowngradingListener{
|
||||||
|
Listener: tcpListener,
|
||||||
|
}
|
||||||
|
|
||||||
for {
|
for {
|
||||||
conn, isTLS, err := listener.AcceptNoWrapTLS()
|
conn, isTLS, err := listener.AcceptNoWrapTLS()
|
||||||
|
Loading…
Reference in New Issue
Block a user