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 | |
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')
-rw-r--r-- | internal/conf/testdata/TestInit.golden.ini | 1 | ||||
-rw-r--r-- | internal/netutil/netutil_test.go | 26 |
2 files changed, 13 insertions, 14 deletions
diff --git a/internal/conf/testdata/TestInit.golden.ini b/internal/conf/testdata/TestInit.golden.ini index 374bbc3e..b7dc6f22 100644 --- a/internal/conf/testdata/TestInit.golden.ini +++ b/internal/conf/testdata/TestInit.golden.ini @@ -141,4 +141,3 @@ DEFAULT_INTERVAL=8 [i18n] LANGS=en-US,zh-CN,zh-HK,zh-TW,de-DE,fr-FR,nl-NL,lv-LV,ru-RU,ja-JP,es-ES,pt-BR,pl-PL,bg-BG,it-IT,fi-FI,tr-TR,cs-CZ,sr-SP,sv-SE,ko-KR,gl-ES,uk-UA,en-GB,hu-HU,sk-SK,id-ID,fa-IR,vi-VN,pt-PT,mn-MN NAMES=English,简体中文,繁體中文(香港),繁體中文(臺灣),Deutsch,français,Nederlands,latviešu,русский,日本語,español,português do Brasil,polski,български,italiano,suomi,Türkçe,čeština,српски,svenska,한국어,galego,українська,English (United Kingdom),Magyar,Slovenčina,Indonesian,Persian,Vietnamese,Português,Монгол - 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) { |