mirror of
https://github.com/go-gitea/gitea
synced 2024-11-15 14:31:41 +01:00
Fixed "net.UnixAddr composite literal uses unkeyed fields"
This commit is contained in:
parent
ec054ba582
commit
3dd14ee522
1 changed files with 1 additions and 1 deletions
|
@ -655,7 +655,7 @@ func runWeb(ctx *cli.Context) error {
|
||||||
os.Remove(listenAddr)
|
os.Remove(listenAddr)
|
||||||
|
|
||||||
var listener *net.UnixListener
|
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 {
|
if err != nil {
|
||||||
break // Handle error after switch
|
break // Handle error after switch
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue