summaryrefslogtreecommitdiff
path: root/modules/caddyhttp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/caddyhttp')
-rw-r--r--modules/caddyhttp/reverseproxy/addresses.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/caddyhttp/reverseproxy/addresses.go b/modules/caddyhttp/reverseproxy/addresses.go
index c161ed8..4da47fb 100644
--- a/modules/caddyhttp/reverseproxy/addresses.go
+++ b/modules/caddyhttp/reverseproxy/addresses.go
@@ -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 != "" {