mirror of
https://github.com/caddyserver/caddy.git
synced 2025-01-21 01:45:45 +03:00
core: Fix to allow empty (wildcard) host
This commit is contained in:
parent
3a795de828
commit
00093a2052
1 changed files with 2 additions and 0 deletions
|
@ -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 = ""
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue