ip/resolver/manager.go: add my-ip service
This commit is contained in:
parent
1dedbbe2dd
commit
711c7fc8d6
1 changed files with 5 additions and 0 deletions
|
|
@ -62,4 +62,9 @@ func init() {
|
||||||
Url: "https://api.myip.com",
|
Url: "https://api.myip.com",
|
||||||
Decoder: decoder.MyIP,
|
Decoder: decoder.MyIP,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Provide(&httpres.Service{
|
||||||
|
ServiceName: "my-ip",
|
||||||
|
Url: "https://api.my-ip.io/v2/ip.txt",
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue