diff --git a/ip/resolver/manager.go b/ip/resolver/manager.go index 1b5f3c9..4bef103 100644 --- a/ip/resolver/manager.go +++ b/ip/resolver/manager.go @@ -4,7 +4,6 @@ import ( "net/http" "dnsupdater/ip/resolver/basic_http" - "dnsupdater/ip/resolver/jsonip" ) var services []Service @@ -23,7 +22,11 @@ func Get(name string) Service { } func init() { - Provide(jsonip.New()) + Provide(&basic_http.Service{ + ServiceName: "jsonip", + Url: "https://jsonip.com", + Decoder: JsonipDecoder, + }) Provide(&basic_http.Service{ ServiceName: "ifconfig.me",