summaryrefslogtreecommitdiff
path: root/internal/api
diff options
context:
space:
mode:
authorjwijenbergh <jeroenwijenbergh@protonmail.com>2024-10-23 11:31:39 +0200
committerJeroen Wijenbergh <46386452+jwijenbergh@users.noreply.github.com>2024-10-29 12:08:36 +0100
commite85070a3fb601e1872d121ce3c1c9d39f8f41036 (patch)
tree96d57bf647f2cdc3408ad5c3163ca91ed571cb63 /internal/api
parent0076386bca8b1e49673f50323cd147ac080cfc2f (diff)
All: Refactor to latest ProxyGuard
Diffstat (limited to 'internal/api')
-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
}