From e85070a3fb601e1872d121ce3c1c9d39f8f41036 Mon Sep 17 00:00:00 2001 From: jwijenbergh Date: Wed, 23 Oct 2024 11:31:39 +0200 Subject: All: Refactor to latest ProxyGuard --- internal/api/api_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'internal/api') diff --git a/internal/api/api_test.go b/internal/api/api_test.go index f15bac4..9648544 100644 --- a/internal/api/api_test.go +++ b/internal/api/api_test.go @@ -497,8 +497,8 @@ PrivateKey = .*`, if gcd.Proxy.SourcePort <= 0 { t.Fatalf("got proxy source port is smaller or equal to 0: %v", gcd.Proxy.SourcePort) } - if !strings.Contains(gcd.Proxy.Listen, "127.0.0.1") { - t.Fatalf("proxy listen does not contain 127.0.0.1: %s", gcd.Proxy.Listen) + if gcd.Proxy.ListenPort <= 0 { + t.Fatalf("proxy listen port is smaller or equal to 0: %v", gcd.Proxy.ListenPort) } c.cd.Proxy = gcd.Proxy } -- cgit v1.2.3