diff --git a/Makefile b/Makefile index d2bc337..ed19147 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,6 @@ GOOS := plan9 GOARCH := amd64 test: - SDF_PROXY_ALLOWED_HOSTS=teapot-dummy-target.example.com \ go test -v build: test diff --git a/server_test.go b/server_test.go index 18d77c5..d5d7efa 100644 --- a/server_test.go +++ b/server_test.go @@ -7,6 +7,10 @@ import ( "testing" ) +func init() { + allowedHosts = []string{"teapot-dummy-target.example.com"} +} + func TestHttpReverseProxy(t *testing.T) { var header map[string][]string