>From Ivan Petrov

ddns-scripts package can not currently detect ipv6 address of the network
interfaces. Fix this issue in this patch. After this patch applied, scripts
will be able to update ipv6 address on Dynamc DNS servers.

Signed-off-by: Ivan Petrov <g...@list.ru>

---

This is my first patch, sorry for possible mistakes.
Patch made at the following path:
$ openwrt/feeds/packages/net/ddns-scripts

Index: files/usr/lib/ddns/dynamic_dns_functions.sh
===================================================================
--- files/usr/lib/ddns/dynamic_dns_functions.sh (revision 37750)
+++ files/usr/lib/ddns/dynamic_dns_functions.sh (working copy)
@@ -69,7 +69,7 @@
        current_ip='';
        if [ "$ip_source" = "network" ]
        then
-               network_get_ipaddr current_ip "$ip_network" || return
+               network_get_ipaddr current_ip "$ip_network" || 
network_get_ipaddr6 current_ip "$ip_network" || return
        elif [ "$ip_source" = "interface" ]
        then
                current_ip=$(ifconfig $ip_interface | grep -o 'inet 
addr:[0-9.]*' | grep -o "$ip_regex")
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Reply via email to