From 00093a20529ab6a2198e6579755a72c48ac79eea Mon Sep 17 00:00:00 2001 From: Matthew Holt Date: Tue, 9 Jun 2015 23:07:32 -0600 Subject: [PATCH] core: Fix to allow empty (wildcard) host --- server/server.go | 2 ++ 1 file changed, 2 insertions(+) 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 = "" } }