mirror of
https://github.com/caddyserver/caddy.git
synced 2026-05-27 17:22:30 -04:00
core: Fix to allow empty (wildcard) host
This commit is contained in:
@@ -209,6 +209,8 @@ func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request) {
|
||||
if _, ok := s.vhosts[host]; !ok {
|
||||
if _, ok2 := s.vhosts["0.0.0.0"]; ok2 {
|
||||
host = "0.0.0.0"
|
||||
} else if _, ok2 := s.vhosts[""]; ok2 {
|
||||
host = ""
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user