Fixed "net.UnixAddr composite literal uses unkeyed fields"

pull/69/head
Thomas Boerger 8 years ago
parent ec054ba582
commit 3dd14ee522
No known key found for this signature in database
GPG Key ID: 5A388F55283960B6
  1. 2
      cmd/web.go

@ -655,7 +655,7 @@ func runWeb(ctx *cli.Context) error {
os.Remove(listenAddr)
var listener *net.UnixListener
listener, err = net.ListenUnix("unix", &net.UnixAddr{listenAddr, "unix"})
listener, err = net.ListenUnix("unix", &net.UnixAddr{Name: listenAddr, Net: "unix"})
if err != nil {
break // Handle error after switch
}

Loading…
Cancel
Save