1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-15 23:17:19 +00:00

Replace "unix" by "http+unix" for PROTOCOL (#17771)

This commit is contained in:
mscherer
2021-12-06 05:46:11 +01:00
committed by GitHub
parent 9d6208965c
commit f49d160447
4 changed files with 26 additions and 27 deletions

View File

@@ -46,7 +46,7 @@ func newInternalRequest(ctx context.Context, url, method string) *httplib.Reques
InsecureSkipVerify: true,
ServerName: setting.Domain,
})
if setting.Protocol == setting.UnixSocket {
if setting.Protocol == setting.HTTPUnix {
req.SetTransport(&http.Transport{
DialContext: func(ctx context.Context, _, _ string) (net.Conn, error) {
var d net.Dialer