[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:
2026-11-10 21:04:24 +01:00
parent 84c1c81906
commit d74079c66d
8 changed files with 183 additions and 10 deletions
+3
View File
@@ -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()
};