Skip to content

Commit db4ab29

Browse files
committed
Use ipfu new endpoint
Ipfy decided to make the api6 endpoint IPv6 exclusive and move the current behaviour to api64, in order to prevent the program from breaking when this change is applied the new endpoint is used. Most probably when Ipfy applies this change a new version of the program will be released using the aipv4 and ipv6 separated endpoints as simplifies codebase.
1 parent 6cd414d commit db4ab29

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/ip/ip.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ var (
2020
ErrInvalidIPReceived = errors.New("the received IP is invalid")
2121
)
2222

23-
const apiEndpoint = "https://api6.ipify.org/"
23+
const apiEndpoint = "https://api64.ipify.org/"
2424

2525
func getIP(v version) (net.IP, error) {
2626
req, err := http.NewRequest("GET", "https://api6.ipify.org/", nil)

0 commit comments

Comments
 (0)