1
0
Fork 0
mirror of https://gitlab.com/pnx-tools/dns-updater.git synced 2026-06-16 05:54:56 +02:00

ip/resolver/jsonip/service.go: use http get helper

This commit is contained in:
Henrik Hautakoski 2023-12-02 14:37:34 +01:00
parent 89aee8e388
commit 4731c01684

View file

@ -4,8 +4,8 @@ import (
"context"
"encoding/json"
"net"
"net/http"
"dnsupdater/http"
"dnsupdater/ip"
)
@ -24,7 +24,7 @@ func (s Service) Name() string {
}
func (s Service) Lookup(ctx context.Context) (net.IP, error) {
resp, err := httphelper.Get(ctx, s.url, nil)
resp, err := http.Get(ctx, s.url, nil)
if err != nil {
return nil, err
}