diff --git a/http.go b/http.go index 74a6598..ddc51ae 100644 --- a/http.go +++ b/http.go @@ -46,7 +46,7 @@ func (tps *TailscaleHTTPProxyServer) ServeHTTP(w http.ResponseWriter, r *http.Re w.WriteHeader(500) return } - if r.URL.Hostname() != tps.server.Hostname() { + if r.URL.Hostname() != "" && r.URL.Hostname() != tps.server.Hostname() { destinationURL := new(url.URL) *destinationURL = *r.URL destinationURL.Host = tps.server.Hostname() + tps.server.options.Listen diff --git a/version.txt b/version.txt index b09a54c..ef090a6 100644 --- a/version.txt +++ b/version.txt @@ -1 +1 @@ -0.7.3 \ No newline at end of file +0.7.4 \ No newline at end of file