ip/resolver/manager.go: remove Lookup() not used.
This commit is contained in:
parent
ec9056e9e0
commit
adbb1feccd
1 changed files with 0 additions and 14 deletions
|
|
@ -1,8 +1,6 @@
|
||||||
package lookup
|
package lookup
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"errors"
|
|
||||||
"net"
|
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"dnsupdater/ip/resolver/basic_http"
|
"dnsupdater/ip/resolver/basic_http"
|
||||||
|
|
@ -24,18 +22,6 @@ func Get(name string) Service {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func Lookup() (net.IP, error) {
|
|
||||||
for _, service := range services {
|
|
||||||
ip, err := service.Lookup()
|
|
||||||
if err != nil {
|
|
||||||
continue
|
|
||||||
}
|
|
||||||
return ip, err
|
|
||||||
}
|
|
||||||
|
|
||||||
return nil, errors.New("failed to get ip")
|
|
||||||
}
|
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
Provide(jsonip.New())
|
Provide(jsonip.New())
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue