mirror of
https://github.com/caddyserver/caddy.git
synced 2026-11-12 20:03:34 +00:00
bind: support multiple values (#2128)
Signed-off-by: Shengjing Zhu <i@zhsj.me>
This commit is contained in:
1 parent
764c9ec956
commit
3a810c6502
8 files changed
+114
-38
No files matched your search
@@ -204,10 +204,10 @@ func redirPlaintextHost(cfg *SiteConfig) *SiteConfig {
|
||||
addr := net.JoinHostPort(host, port)
|
||||
|
||||
return &SiteConfig{
|
||||
Addr: Address{Original: addr, Host: host, Port: port},
|
||||
ListenHost: cfg.ListenHost,
|
||||
middleware: []Middleware{redirMiddleware},
|
||||
TLS: &caddytls.Config{AltHTTPPort: cfg.TLS.AltHTTPPort, AltTLSSNIPort: cfg.TLS.AltTLSSNIPort},
|
||||
Timeouts: cfg.Timeouts,
|
||||
Addr: Address{Original: addr, Host: host, Port: port},
|
||||
ListenHosts: cfg.ListenHosts,
|
||||
middleware: []Middleware{redirMiddleware},
|
||||
TLS: &caddytls.Config{AltHTTPPort: cfg.TLS.AltHTTPPort, AltTLSSNIPort: cfg.TLS.AltTLSSNIPort},
|
||||
Timeouts: cfg.Timeouts,
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user