Refactor
This commit is contained in:
parent
bd3aa5e948
commit
0f21902ffd
11 changed files with 96 additions and 80 deletions
|
|
@ -8,7 +8,7 @@ import (
|
|||
"strings"
|
||||
|
||||
httputils "dnsupdater/http"
|
||||
"dnsupdater/ip"
|
||||
"dnsupdater/ip/internal"
|
||||
)
|
||||
|
||||
type Service struct {
|
||||
|
|
@ -35,5 +35,5 @@ func (s Service) Lookup(ctx context.Context) (net.IP, error) {
|
|||
// Trim spaces and stuff.
|
||||
ip_str := strings.TrimSpace(string(body))
|
||||
|
||||
return ip.ParseIP(ip_str)
|
||||
return internal.ParseIP(ip_str)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue