Update Go version
This commit is contained in:
parent
187ec26d8e
commit
b7700e77bf
11 changed files with 65 additions and 28 deletions
|
@ -27,6 +27,12 @@ func TestIsAuthorized(t *testing.T) {
|
|||
remoteAddr: "1.2.3.1:123",
|
||||
authorized: true,
|
||||
},
|
||||
{
|
||||
desc: "octal ip in remoteAddr",
|
||||
whiteList: []string{"127.2.3.4/24"},
|
||||
remoteAddr: "0127.2.3.1:123",
|
||||
authorized: false,
|
||||
},
|
||||
}
|
||||
|
||||
for _, test := range testCases {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue