diff --git a/server/server.go b/server/server.go index 356a5f6ae..a97f68f43 100644 --- a/server/server.go +++ b/server/server.go @@ -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 = "" } }