mirror of
https://gitlab.com/pnx-tools/dns-updater.git
synced 2026-06-16 05:54:56 +02:00
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
|
||||
|
||||
import (
|
||||
"errors"
|
||||
"net"
|
||||
"net/http"
|
||||
|
||||
"dnsupdater/ip/resolver/basic_http"
|
||||
|
|
@ -24,18 +22,6 @@ func Get(name string) Service {
|
|||
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() {
|
||||
Provide(jsonip.New())
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue