diff --git a/utils_test.go b/utils_test.go index 5a77a52..7bfe568 100644 --- a/utils_test.go +++ b/utils_test.go @@ -5,7 +5,7 @@ import ( ) func TestGetCurrentIP(t *testing.T) { - conf := &Settings{IPUrl: "http://members.3322.org/dyndns/getip"} + conf := &Settings{IPUrl: "https://myip.biturl.top"} ip, _ := GetCurrentIP(conf) if ip == "" { @@ -13,13 +13,6 @@ func TestGetCurrentIP(t *testing.T) { } else { t.Log("IP is:" + ip) } - - conf = &Settings{Socks5Proxy: "localhost:8899", IPUrl: "http://members.3322.org/dyndns/getip"} - ip, err := GetCurrentIP(conf) - - if ip != "" && err == nil { - t.Error("should return error") - } } func TestCheckSettings(t *testing.T) {