diff options
author | dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> | 2023-01-07 16:52:04 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-07 16:52:04 +0800 |
commit | 6133415f6d6c81773ec34dcd82383afcad2b0a13 (patch) | |
tree | 3cf8bcdc47ec3165cde45e3a25d90f817dd652c4 /internal/netutil/netutil_test.go | |
parent | c53b7e9698524da9a2c80ab2c129ca4e623a25e9 (diff) |
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 <jc@unknwon.io>
Diffstat (limited to 'internal/netutil/netutil_test.go')
-rw-r--r-- | internal/netutil/netutil_test.go | 19 |
1 files changed, 9 insertions, 10 deletions
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) { |