Update easyDNS endpoint URL

Fixes #340
This commit is contained in:
David Mell 2021-06-29 12:49:12 -08:00 committed by GitHub
parent 5ca20a8d2f
commit 9631575ab4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -651,7 +651,8 @@ my %services = (
'backupmx' => setv(T_BOOL, 0, 1, 0, undef), 'backupmx' => setv(T_BOOL, 0, 1, 0, undef),
'min-interval' => setv(T_DELAY, 0, 0, interval('5m'), 0), 'min-interval' => setv(T_DELAY, 0, 0, interval('5m'), 0),
'mx' => setv(T_OFQDN, 0, 1, '', undef), 'mx' => setv(T_OFQDN, 0, 1, '', undef),
'server' => setv(T_FQDNP, 1, 0, 'members.easydns.com', undef), 'server' => setv(T_FQDNP, 1, 0, 'api.cp.easydns.com', undef),
'script' => setv(T_STRING, 1, 1, '/dyn/generic.php', undef),
'wildcard' => setv(T_BOOL, 0, 1, 0, undef), 'wildcard' => setv(T_BOOL, 0, 1, 0, undef),
}, },
}, },
@ -4585,10 +4586,10 @@ sub nic_easydns_update {
info("setting IP address to %s for %s", $ip, $hosts); info("setting IP address to %s for %s", $ip, $hosts);
verbose("UPDATE:", "updating %s", $hosts); verbose("UPDATE:", "updating %s", $hosts);
#'http://members.easydns.com/dyn/dyndns.php?hostname=test.burry.ca&myip=10.20.30.40&wildcard=ON' #'https://api.cp.easydns.com/dyn/generic.php?hostname=test.burry.ca&myip=10.20.30.40&wildcard=ON'
my $url; my $url;
$url = "http://$config{$h}{'server'}/dyn/dyndns.php?"; $url = "https://$config{$h}{'server'}$config{$h}{'script'}?";
$url .= "hostname=$hosts"; $url .= "hostname=$hosts";
$url .= "&myip="; $url .= "&myip=";
$url .= $ip if $ip; $url .= $ip if $ip;