0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-12-22 23:33:15 -05:00

Fixed "net.UnixAddr composite literal uses unkeyed fields"

This commit is contained in:
Thomas Boerger 2016-11-04 14:15:55 +01:00
parent ec054ba582
commit 3dd14ee522
No known key found for this signature in database
GPG key ID: 5A388F55283960B6

View file

@ -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
}