summaryrefslogtreecommitdiff
path: root/tcpproxy_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'tcpproxy_test.go')
-rw-r--r--tcpproxy_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/tcpproxy_test.go b/tcpproxy_test.go
index ac7c917..682214d 100644
--- a/tcpproxy_test.go
+++ b/tcpproxy_test.go
@@ -71,7 +71,7 @@ func TestMatchHTTPHost(t *testing.T) {
}
t.Run(name, func(t *testing.T) {
br := bufio.NewReader(tt.r)
- r := httpHostMatch{tt.host, noopTarget{}}
+ r := httpHostMatch{equals(tt.host), noopTarget{}}
got := r.match(br) != nil
if got != tt.want {
t.Fatalf("match = %v; want %v", got, tt.want)