Hard-code testing target host

This commit is contained in:
marco 2023-02-11 00:15:48 +01:00
parent 5907a46658
commit c28d6e3675
2 changed files with 4 additions and 1 deletions

View File

@ -4,7 +4,6 @@ GOOS := plan9
GOARCH := amd64
test:
SDF_PROXY_ALLOWED_HOSTS=teapot-dummy-target.example.com \
go test -v
build: test

View File

@ -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