summaryrefslogtreecommitdiff
path: root/internal/api/api_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/api/api_test.go')
-rw-r--r--internal/api/api_test.go4
1 files changed, 2 insertions, 2 deletions
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
}