[Ddclient-support] Can not pass IPv6 IP via -ip option
Brought to you by:
supersandro2000,
wimpunk
From: Andrey V. <an...@va...> - 2018-09-16 16:23:25
|
Hello *, I'd like to use static ipv6 to update DDNS. I run ddclient using command line argument "-ip", for example: ddclient -daemon=0 -use=ip -ip=2001:16b8:22e1:1c00:aaaa:aaaa:aaaa:aaaa -ipv6 -verbose -debug -host=myhost.domain ddclient logs following: ------------- WARNING: found neither ipv4 nor ipv6 address DEBUG: get_ip: using ip, ip reports <undefined> WARNING: unable to determine IP address ------------ So far I understand it's a bug that can be fixed with following patch: ------------ --- orig/ddclient 2018-08-29 20:51:54.000000000 +0200 +++ ddclient 2018-09-16 17:53:24.553246958 +0200 @@ -2162,7 +2162,7 @@ if ($use eq 'ip') { $ip = opt('ip', $h); $arg = 'ip'; - + $reply=$ip; } elsif ($use eq 'if') { $skip = opt('if-skip', $h) || ''; $reply = `ifconfig $arg 2> /dev/null`; ------------ Best regards -- Andrey Vakhitov E-Mail: <mailto:an...@va...> an...@va... Stuttgart, Germany |