From 5f948ce83a76d00570e625ec1ce1b4c3519efad3 Mon Sep 17 00:00:00 2001 From: Matthieu Lamalle Date: Thu, 8 Aug 2024 08:45:06 +0200 Subject: [PATCH] feat(authn) : add case to test multiples CIDR --- .../director/layer/authn/network/authenticator_test.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/internal/proxy/director/layer/authn/network/authenticator_test.go b/internal/proxy/director/layer/authn/network/authenticator_test.go index 395668a..fcc66c6 100644 --- a/internal/proxy/director/layer/authn/network/authenticator_test.go +++ b/internal/proxy/director/layer/authn/network/authenticator_test.go @@ -39,6 +39,14 @@ func TestMatchAuthorizedCIDRs(t *testing.T) { }, ExpectedResult: false, }, + { + RemoteHostPort: "192.168.1.15:43349", + AuthorizedCIDRs: []string{ + "192.168.1.0/24", + "192.168.1.5/32", + }, + ExpectedResult: false, + }, } auth := Authenticator{}