diff options
author | mscherer <mscherer@users.noreply.github.com> | 2021-12-06 05:46:11 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-05 23:46:11 -0500 |
commit | f49d160447899270fbca6370cb7ab2742dce85dc (patch) | |
tree | c0d4aba602a7ab922c77eba312540bac075ee2e8 /cmd | |
parent | 9d6208965c0590e307b8b198557690257da83351 (diff) | |
download | gitea-f49d160447899270fbca6370cb7ab2742dce85dc.tar.gz gitea-f49d160447899270fbca6370cb7ab2742dce85dc.zip |
Replace "unix" by "http+unix" for PROTOCOL (#17771)
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/web.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cmd/web.go b/cmd/web.go index fbd62191a6..137c56d962 100644 --- a/cmd/web.go +++ b/cmd/web.go @@ -180,7 +180,7 @@ func setPort(port string) error { setting.HTTPPort = port switch setting.Protocol { - case setting.UnixSocket: + case setting.HTTPUnix: case setting.FCGI: case setting.FCGIUnix: default: @@ -202,7 +202,7 @@ func setPort(port string) error { func listen(m http.Handler, handleRedirector bool) error { listenAddr := setting.HTTPAddr - if setting.Protocol != setting.UnixSocket && setting.Protocol != setting.FCGIUnix { + if setting.Protocol != setting.HTTPUnix && setting.Protocol != setting.FCGIUnix { listenAddr = net.JoinHostPort(listenAddr, setting.HTTPPort) } log.Info("Listen: %v://%s%s", setting.Protocol, listenAddr, setting.AppSubURL) @@ -240,7 +240,7 @@ func listen(m http.Handler, handleRedirector bool) error { NoHTTPRedirector() } err = runFCGI("tcp", listenAddr, "FCGI Web", m) - case setting.UnixSocket: + case setting.HTTPUnix: if handleRedirector { NoHTTPRedirector() } |