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
This commit is contained in:
parent
9fa0e5872b
commit
b0e6b06188
1 changed files with 1 additions and 0 deletions
1
ddclient
1
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') {
|
||||
|
|
Loading…
Reference in a new issue