mirror of
https://github.com/caddyserver/caddy.git
synced 2024-11-22 16:08:58 +08:00
cmd: Fix unix socket addresses for admin API requests (#4742)
Fixes a regression in c2327161f7
This commit is contained in:
parent
dcc98da4d2
commit
2e4c09155a
|
@ -669,7 +669,7 @@ func AdminAPIRequest(adminAddr, method, uri string, headers http.Header, body io
|
|||
}
|
||||
origin := "http://" + parsedAddr.JoinHostPort(0)
|
||||
if parsedAddr.IsUnixNetwork() {
|
||||
origin = "unixsocket" // hack so that http.NewRequest() is happy
|
||||
origin = "http://unixsocket" // hack so that http.NewRequest() is happy
|
||||
}
|
||||
|
||||
// form the request
|
||||
|
|
Loading…
Reference in New Issue
Block a user