--- rpms/smeserver-ddclient/contribs9/smeserver-ddclient-1.2.1-bz9450-new-ip-detection.patch 2019/01/20 05:40:34 1.1 +++ rpms/smeserver-ddclient/contribs9/smeserver-ddclient-1.2.1-bz9450-new-ip-detection.patch 2019/04/08 02:40:06 1.3 @@ -65,7 +65,7 @@ diff -Nur smeserver-ddclient-1.2.1.old/r + my $Extinterface = $ddclient{'Extinterface'}|| $ExternalInterface{'Name'}|| ''; + my $cmd = $ddclient{'cmd'} || '/sbin/e-smith/db configuration getprop ExternalInterface IPAddress'; + my $ForceIP = $ddclient{'ForceIP'} || $ExternalInterface{'IPAddress'} || $ExternalIP || ''; -+ ++ $OUT .= "\n"; + if ( $method eq 'smeIF' ) { + # we use SME db to get the external interface NAME : ppp0, eth1, tap0... + $Extinterface = $ExternalInterface{'Name'} ||$Extinterface; @@ -164,9 +164,9 @@ diff -Nur smeserver-ddclient-1.2.1.old/r my $urlcheckip=$ddretrieve->prop('urlcheckip')|| 'checkip.dyndns.org'; my $ssl=$ddretrieve->prop('SSL')|| 'yes'; + my $method=$ddretrieve->prop('method')||'web'; -+ my $Extinterface=$ddretrieve->prop('Extinterface')||$ExtIF->prop('Name')||'eth1'; ++ my $Extinterface=$ddretrieve->prop('Extinterface')||''; + my $cmd=$ddretrieve->prop('cmd')||''; -+ my $forceIP=$ddretrieve->prop('ForceIP')||$ExtIF->prop('IPAddress')||''; ++ my $forceIP=$ddretrieve->prop('ForceIP')||''; print $q->startform (-method => 'POST', -action => $q->url (-absolute => 1));