mirror of
https://github.com/caddyserver/caddy.git
synced 2025-05-31 00:06:04 +08:00
reverseproxy: default to port 80 for upstreams in Caddyfile (#3772)
* reverseproxy: default to port 80 for port-less upstream dial addresses * reverseproxy: replace integration test with an adapter test Fixes #3761
This commit is contained in:

committed by
GitHub

parent
fdfdc03339
commit
aa9c3eb732
@ -155,6 +155,9 @@ func (h *Handler) UnmarshalCaddyfile(d *caddyfile.Dispenser) error {
|
||||
if err != nil {
|
||||
host = upstreamAddr
|
||||
}
|
||||
if port == "" {
|
||||
port = "80"
|
||||
}
|
||||
}
|
||||
|
||||
// the underlying JSON does not yet support different
|
||||
|
Reference in New Issue
Block a user