From d466c962292b16a4612880114b1389e72b75e450 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 30 May 2022 19:00:49 +0800 Subject: 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 --- internal/netutil/netutil_test.go | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'internal/netutil/netutil_test.go') 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) { -- cgit v1.2.3