domeneshop: Add IPv6 support
This commit is contained in:
parent
61fff1c344
commit
ef8bf634fe
2 changed files with 20 additions and 16 deletions
|
@ -84,6 +84,8 @@ repository history](https://github.com/ddclient/ddclient/commits/master).
|
||||||
records. [#695](https://github.com/ddclient/ddclient/pull/695)
|
records. [#695](https://github.com/ddclient/ddclient/pull/695)
|
||||||
* `inwx`: New `protocol` option for updating [INWX](https://www.inwx.com/)
|
* `inwx`: New `protocol` option for updating [INWX](https://www.inwx.com/)
|
||||||
records. [#690](https://github.com/ddclient/ddclient/pull/690)
|
records. [#690](https://github.com/ddclient/ddclient/pull/690)
|
||||||
|
* `domeneshop`: Add IPv6 support.
|
||||||
|
[#719](https://github.com/ddclient/ddclient/pull/719)
|
||||||
|
|
||||||
### Bug fixes
|
### Bug fixes
|
||||||
|
|
||||||
|
|
12
ddclient.in
12
ddclient.in
|
@ -4314,8 +4314,9 @@ EoEXAMPLE
|
||||||
sub nic_domeneshop_update {
|
sub nic_domeneshop_update {
|
||||||
debug("\nnic_domeneshop_update -------------------");
|
debug("\nnic_domeneshop_update -------------------");
|
||||||
for my $h (@_) {
|
for my $h (@_) {
|
||||||
my $ip = delete $config{$h}{'wantip'};
|
for my $ipv ('4', '6') {
|
||||||
info("$h: Setting IP address to $ip");
|
my $ip = delete $config{$h}{"wantipv$ipv"} or next;
|
||||||
|
info("$h: Setting IPv$ipv address to $ip");
|
||||||
my $reply = geturl(
|
my $reply = geturl(
|
||||||
proxy => opt('proxy'),
|
proxy => opt('proxy'),
|
||||||
url => "$config{$h}{'server'}/v0/dyndns/update?hostname=$h&myip=$ip",
|
url => "$config{$h}{'server'}/v0/dyndns/update?hostname=$h&myip=$ip",
|
||||||
|
@ -4327,10 +4328,11 @@ sub nic_domeneshop_update {
|
||||||
next;
|
next;
|
||||||
}
|
}
|
||||||
next if !header_ok($h, $reply);
|
next if !header_ok($h, $reply);
|
||||||
$config{$h}{'ip'} = $ip;
|
$config{$h}{"ipv$ipv"} = $ip;
|
||||||
$config{$h}{'mtime'} = $now;
|
$config{$h}{'mtime'} = $now;
|
||||||
$config{$h}{'status'} = 'good';
|
$config{$h}{"status-ipv$ipv"} = 'good';
|
||||||
success("$h: IP address set to $ip");
|
success("$h: IPv$ipv address set to $ip");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue