sync: 同步 v1.0.4 并脱敏配置与镜像
This commit is contained in:
@@ -156,7 +156,7 @@ func TestAsyncIPLookupLimitsConcurrentQueries(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestGetCityByIPSkipsPrivateAndInvalidAddresses(t *testing.T) {
|
||||
for _, ip := range []string{"127.0.0.1", "[::1]", "::1", "10.1.2.3", "172.23.0.6", "192.168.100.29", "fe80::1", "0.0.0.0"} {
|
||||
for _, ip := range []string{"127.0.0.1", "[::1]", "::1", "127.0.0.1", "127.0.0.1", "127.0.0.1", "fe80::1", "0.0.0.0"} {
|
||||
if got := GetCityByIp(ip); got != "内网IP" {
|
||||
t.Errorf("%s: got %q", ip, got)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user