Support IPv6 for CloudFlare
This commit is contained in:
parent
3dd2054124
commit
7e850b7560
1 changed files with 5 additions and 1 deletions
4
ddclient
4
ddclient
|
@ -4287,7 +4287,11 @@ sub nic_cloudflare_update {
|
|||
|
||||
# Get DNS record ID
|
||||
$url = "https://$config{$key}{'server'}/zones/$zone_id/dns_records?";
|
||||
if (is_ipv6($ip)) {
|
||||
$url .= "type=AAAA&name=$domain";
|
||||
} else {
|
||||
$url .= "type=A&name=$domain";
|
||||
}
|
||||
|
||||
$reply = geturl(opt('proxy'), $url, undef, undef, $headers);
|
||||
unless ($reply) {
|
||||
|
|
Loading…
Reference in a new issue