From b0e6b061881b99635c78be03416fb2c959a84cd4 Mon Sep 17 00:00:00 2001 From: wimpunk Date: Mon, 28 Oct 2013 22:38:56 +0000 Subject: [PATCH] Fallback to iproute if ifconfig doesn't work. This fix applies the patch provided by Maccied Grela in [bugs:#26] git-svn-id: svn+ssh://svn.code.sf.net/p/ddclient/code/trunk@155 3873ddee-7413-0410-b6c4-c2c57c1ab35a --- ddclient | 1 + 1 file changed, 1 insertion(+) diff --git a/ddclient b/ddclient index 10763a3..61bc0d4 100755 --- a/ddclient +++ b/ddclient @@ -1958,6 +1958,7 @@ sub get_ip { } elsif ($use eq 'if') { $skip = opt('if-skip', $h) || ''; $reply = `ifconfig $arg 2> /dev/null`; + $reply = `ip addr list dev $arg 2> /dev/null` if $?; $reply = '' if $?; } elsif ($use eq 'cmd') {