bind: support multiple values (#2128)

Signed-off-by: Shengjing Zhu <i@zhsj.me>
This commit is contained in:
zhsj
2018-11-27 09:27:58 +08:00
committed by Matt Holt
parent 764c9ec956
commit 3a810c6502
8 changed files with 114 additions and 38 deletions

View File

@@ -419,7 +419,7 @@ func (s *Server) serveHTTP(w http.ResponseWriter, r *http.Request) (int, error)
// we still check for ACME challenge if the vhost exists,
// because we must apply its HTTP challenge config settings
if caddytls.HTTPChallengeHandler(w, r, vhost.ListenHost) {
if caddytls.HTTPChallengeHandler(w, r, vhost.ListenHosts[0]) {
return 0, nil
}