[core] Unix upstreams: unix:/path parses strictly into a socket upstream; edge proxies and health-checks it in plain HTTP over the socket, Caddy dials unix/<path>
This commit is contained in:
@@ -122,6 +122,9 @@ async fn round(host: &Arc<HostRt>, path: &str, connector: &Arc<Connector>, watch
|
||||
let (h, p, c) = (host.clone(), path.to_owned(), connector.clone());
|
||||
let probe_host = if watch {
|
||||
host.cfg.hostname.clone()
|
||||
} else if host.upstreams[i].unix.is_some() {
|
||||
// A socket has no authority to name; the probe asks as a local client would.
|
||||
"localhost".to_owned()
|
||||
} else {
|
||||
host.upstreams[i].authority.clone()
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user