mirror of
https://gitlab.com/pnx-tools/dns-updater.git
synced 2026-06-16 05:54:56 +02:00
rename ip/resolver/basic_http to ip/resolver/http
This commit is contained in:
parent
0ad92e8e4a
commit
ae60d3bf35
3 changed files with 8 additions and 8 deletions
|
|
@ -1,4 +1,4 @@
|
|||
package basic_http
|
||||
package http
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package basic_http
|
||||
package http
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
|
@ -3,7 +3,7 @@ package resolver
|
|||
import (
|
||||
"net/http"
|
||||
|
||||
"dnsupdater/ip/resolver/basic_http"
|
||||
httpres "dnsupdater/ip/resolver/http"
|
||||
)
|
||||
|
||||
var services []Service
|
||||
|
|
@ -22,18 +22,18 @@ func Get(name string) Service {
|
|||
}
|
||||
|
||||
func init() {
|
||||
Provide(&basic_http.Service{
|
||||
Provide(&httpres.Service{
|
||||
ServiceName: "jsonip",
|
||||
Url: "https://jsonip.com",
|
||||
Decoder: JsonipDecoder,
|
||||
})
|
||||
|
||||
Provide(&basic_http.Service{
|
||||
Provide(&httpres.Service{
|
||||
ServiceName: "ifconfig.me",
|
||||
Url: "https://ifconfig.me/ip",
|
||||
})
|
||||
|
||||
Provide(&basic_http.Service{
|
||||
Provide(&httpres.Service{
|
||||
ServiceName: "ip.me",
|
||||
Url: "https://ip.me",
|
||||
Headers: http.Header{
|
||||
|
|
@ -41,12 +41,12 @@ func init() {
|
|||
},
|
||||
})
|
||||
|
||||
Provide(&basic_http.Service{
|
||||
Provide(&httpres.Service{
|
||||
ServiceName: "ipecho",
|
||||
Url: "http://ipecho.net/plain",
|
||||
})
|
||||
|
||||
Provide(&basic_http.Service{
|
||||
Provide(&httpres.Service{
|
||||
ServiceName: "icanhazip",
|
||||
Url: "https://icanhazip.com",
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue