File ddclient-3.8.0-update_nic.patch of Package ddclient

diff -ruN ddclient-3.8.0-orig/ddclient ddclient-3.8.0/ddclient
--- ddclient-3.8.0-orig/ddclient	2009-01-27 19:14:02.000000000 +0000
+++ ddclient-3.8.0/ddclient	2009-05-01 20:55:20.386630124 +0000
@@ -726,7 +726,7 @@
 	foreach my $h (sort keys %config) {
 	    next if $config{$h}{'protocol'} ne lc($s);
 	    $examined{$h} = 1;
-	    my $use = $config{$h}{'use'} || opt('use');
+	    my $use = $opt{'use'} || $config{$h}{'use'};
 	    local $opt{$use} = $config{$h}{$use} if $config{$h}{$use};
 	    my $ip = get_ip($use);
 	    if (!defined $ip || !$ip) {
openSUSE Build Service is sponsored by