Refactor
This commit is contained in:
parent
bd3aa5e948
commit
0f21902ffd
11 changed files with 96 additions and 80 deletions
|
|
@ -6,7 +6,7 @@ import (
|
|||
"net"
|
||||
|
||||
"dnsupdater/http"
|
||||
"dnsupdater/ip"
|
||||
"dnsupdater/ip/internal"
|
||||
)
|
||||
|
||||
type Service struct {
|
||||
|
|
@ -38,5 +38,5 @@ func (s Service) Lookup(ctx context.Context) (net.IP, error) {
|
|||
return nil, err
|
||||
}
|
||||
|
||||
return ip.ParseIP(v.Ip)
|
||||
return internal.ParseIP(v.Ip)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue