skibish / ddns

Personal DDNS client with Digital Ocean Networking DNS as backend.
MIT License
254 stars 24 forks source link

ifconig.co deprecated "force IPv4/IPv6" #17

Closed g-div closed 5 years ago

g-div commented 5 years ago

From ifconfig.co:

As of 2018-07-25 it's no longer possible to force protocol using the v4 and v6 subdomains. IPv4 or IPv6 still can be forced by passing the appropiate flag to your client, e.g curl -4 or curl -6.

This caused the following problem when I was trying to set an A record, even setting forceIPv6 to false and forceIPv4:

$ ddns                                        
time="2019-09-27T11:48:45+01:00" level=info msg="Current IP is "xxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx" 
time="2019-09-27T11:48:46+01:00" level=fatal msg="digitalocean: Request Failed"   

It's probably necessary to remove/rewrite this provider. In any case it would be very useful in such situation to be able to select a list of providers to use, but this can be eventually discussed in another issue...

skibish commented 5 years ago

Thanks for finding and reporting this issue!

I'll try in short time to provide a solution.

to be able to select a list of providers to use

Agree with this one, will think about it