diff options
author | dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> | 2022-05-30 19:00:49 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-30 19:00:49 +0800 |
commit | d466c962292b16a4612880114b1389e72b75e450 (patch) | |
tree | 7a274585f82e4eb71332a9a18caec9c47ba4d2c4 /internal/netutil/netutil_test.go | |
parent | 38dbfee56c299d108dd213c23dfa5ac219b83b95 (diff) |
mod: bump gopkg.in/ini.v1 from 1.66.4 to 1.66.5 (#6984)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Joe Chen <jc@unknwon.io>
Diffstat (limited to 'internal/netutil/netutil_test.go')
-rw-r--r-- | internal/netutil/netutil_test.go | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/internal/netutil/netutil_test.go b/internal/netutil/netutil_test.go index c65af2c0..65202baf 100644 --- a/internal/netutil/netutil_test.go +++ b/internal/netutil/netutil_test.go @@ -16,21 +16,21 @@ func TestIsLocalHostname(t *testing.T) { allowlist []string want bool }{ - {hostname: "localhost", want: true}, - {hostname: "127.0.0.1", want: true}, - {hostname: "::1", want: true}, - {hostname: "0:0:0:0:0:0:0:1", want: true}, - {hostname: "fuf.me", want: true}, - {hostname: "127.0.0.95", want: true}, - {hostname: "0.0.0.0", want: true}, - {hostname: "192.168.123.45", want: true}, + {hostname: "localhost", want: true}, // #00 + {hostname: "127.0.0.1", want: true}, // #01 + {hostname: "::1", want: true}, // #02 + {hostname: "0:0:0:0:0:0:0:1", want: true}, // #03 + {hostname: "fuf.me", want: true}, // #04 + {hostname: "127.0.0.95", want: true}, // #05 + {hostname: "0.0.0.0", want: true}, // #06 + {hostname: "192.168.123.45", want: true}, // #07 - {hostname: "gogs.io", want: false}, - {hostname: "google.com", want: false}, - {hostname: "165.232.140.255", want: false}, + {hostname: "gogs.io", want: false}, // #08 + {hostname: "google.com", want: false}, // #09 + {hostname: "165.232.140.255", want: false}, // #10 - {hostname: "192.168.123.45", allowlist: []string{"10.0.0.17"}, want: true}, - {hostname: "gogs.local", allowlist: []string{"gogs.local"}, want: false}, + {hostname: "192.168.123.45", allowlist: []string{"10.0.0.17"}, want: true}, // #11 + {hostname: "gogs.local", allowlist: []string{"gogs.local"}, want: false}, // #12 } for _, test := range tests { t.Run("", func(t *testing.T) { |