aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Boerger <thomas@webhippie.de>2016-11-04 14:15:55 +0100
committerThomas Boerger <thomas@webhippie.de>2016-11-04 23:45:47 +0100
commit3dd14ee522edeac24cdb70be6354fd2c8ebfc47d (patch)
tree5aa1385df07334e28c4aa4406c8b19c59bbf76e2
parentec054ba582d72c2c0cdd07404dc512da7d142031 (diff)
downloadgitea-3dd14ee522edeac24cdb70be6354fd2c8ebfc47d.tar.gz
gitea-3dd14ee522edeac24cdb70be6354fd2c8ebfc47d.zip
Fixed "net.UnixAddr composite literal uses unkeyed fields"
-rw-r--r--cmd/web.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/web.go b/cmd/web.go
index ee9ee4d951..a43dae38f3 100644
--- a/cmd/web.go
+++ b/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
}