Compare commits
1 Commits
5f948ce83a
...
a1b07c568e
Author | SHA1 | Date | |
---|---|---|---|
a1b07c568e |
@ -42,8 +42,17 @@ func TestMatchAuthorizedCIDRs(t *testing.T) {
|
|||||||
{
|
{
|
||||||
RemoteHostPort: "192.168.1.15:43349",
|
RemoteHostPort: "192.168.1.15:43349",
|
||||||
AuthorizedCIDRs: []string{
|
AuthorizedCIDRs: []string{
|
||||||
"192.168.1.0/24",
|
|
||||||
"192.168.1.5/32",
|
"192.168.1.5/32",
|
||||||
|
"192.168.1.0/24",
|
||||||
|
},
|
||||||
|
ExpectedResult: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
RemoteHostPort: "192.168.1.15:43349",
|
||||||
|
AuthorizedCIDRs: []string{
|
||||||
|
"192.168.1.5/32",
|
||||||
|
"192.168.1.6/32",
|
||||||
|
"192.168.1.7/32",
|
||||||
},
|
},
|
||||||
ExpectedResult: false,
|
ExpectedResult: false,
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user