Compare commits
1 Commits
04b41baea3
...
6cbca81089
Author | SHA1 | Date | |
---|---|---|---|
6cbca81089 |
@ -39,23 +39,6 @@ func TestMatchAuthorizedCIDRs(t *testing.T) {
|
|||||||
},
|
},
|
||||||
ExpectedResult: false,
|
ExpectedResult: false,
|
||||||
},
|
},
|
||||||
{
|
|
||||||
RemoteHostPort: "192.168.1.15:43349",
|
|
||||||
AuthorizedCIDRs: []string{
|
|
||||||
"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,
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
|
|
||||||
auth := Authenticator{}
|
auth := Authenticator{}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user