From 6133415f6d6c81773ec34dcd82383afcad2b0a13 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 7 Jan 2023 16:52:04 +0800 Subject: mod: bump gorm.io/driver/postgres from 1.4.5 to 1.4.6 (#7299) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Joe Chen --- internal/netutil/netutil_test.go | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) (limited to 'internal/netutil/netutil_test.go') diff --git a/internal/netutil/netutil_test.go b/internal/netutil/netutil_test.go index 08b4dc50..af02d9a7 100644 --- a/internal/netutil/netutil_test.go +++ b/internal/netutil/netutil_test.go @@ -20,19 +20,18 @@ func TestIsLocalHostname(t *testing.T) { {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: "127.0.0.95", want: true}, // #04 + {hostname: "0.0.0.0", want: true}, // #05 + {hostname: "192.168.123.45", want: true}, // #06 - {hostname: "gogs.io", want: false}, // #08 - {hostname: "google.com", want: false}, // #09 - {hostname: "165.232.140.255", want: false}, // #10 + {hostname: "gogs.io", want: false}, // #07 + {hostname: "google.com", want: false}, // #08 + {hostname: "165.232.140.255", want: false}, // #09 - {hostname: "192.168.123.45", allowlist: []string{"10.0.0.17"}, want: true}, // #11 - {hostname: "gogs.local", allowlist: []string{"gogs.local"}, want: false}, // #12 + {hostname: "192.168.123.45", allowlist: []string{"10.0.0.17"}, want: true}, // #10 + {hostname: "gogs.local", allowlist: []string{"gogs.local"}, want: false}, // #11 - {hostname: "192.168.123.45", allowlist: []string{"*"}, want: false}, // #13 + {hostname: "192.168.123.45", allowlist: []string{"*"}, want: false}, // #12 } for _, test := range tests { t.Run("", func(t *testing.T) { -- cgit v1.2.3