mirror of
https://github.com/caddyserver/caddy.git
synced 2026-05-26 16:52:40 -04:00
reverseproxy: Add unix+h2c Caddyfile network shortcut (#4953)
This commit is contained in:
@@ -96,6 +96,12 @@ func parseUpstreamDialAddress(upstreamAddr string) (string, string, error) {
|
||||
}
|
||||
}
|
||||
|
||||
// special case network to support both unix and h2c at the same time
|
||||
if network == "unix+h2c" {
|
||||
network = "unix"
|
||||
scheme = "h2c"
|
||||
}
|
||||
|
||||
// for simplest possible config, we only need to include
|
||||
// the network portion if the user specified one
|
||||
if network != "" {
|
||||
|
||||
Reference in New Issue
Block a user