core: Fix to allow empty (wildcard) host

This commit is contained in:
Matthew Holt 2015-06-09 23:07:32 -06:00
parent 3a795de828
commit 00093a2052

View file

@ -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 = ""
}
}