mirror of
https://github.com/caddyserver/caddy.git
synced 2026-09-01 00:48:03 +00: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:
parent
fdfdc03339
commit
aa9c3eb732
2 changed files with 116 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue