/[smecontribs]/rpms/smeserver-ddclient/contribs9/smeserver-ddclient-1.2.1-bz9450-new-ip-detection.patch
ViewVC logotype

Diff of /rpms/smeserver-ddclient/contribs9/smeserver-ddclient-1.2.1-bz9450-new-ip-detection.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

Revision 1.1 by jpp, Sun Jan 20 05:40:34 2019 UTC Revision 1.3 by jpp, Mon Apr 8 02:40:06 2019 UTC
# Line 65  diff -Nur smeserver-ddclient-1.2.1.old/r Line 65  diff -Nur smeserver-ddclient-1.2.1.old/r
65  +    my $Extinterface =  $ddclient{'Extinterface'}|| $ExternalInterface{'Name'}|| '';  +    my $Extinterface =  $ddclient{'Extinterface'}|| $ExternalInterface{'Name'}|| '';
66  +    my $cmd = $ddclient{'cmd'} || '/sbin/e-smith/db configuration getprop ExternalInterface IPAddress';  +    my $cmd = $ddclient{'cmd'} || '/sbin/e-smith/db configuration getprop ExternalInterface IPAddress';
67  +    my $ForceIP = $ddclient{'ForceIP'} || $ExternalInterface{'IPAddress'} || $ExternalIP || '';  +    my $ForceIP = $ddclient{'ForceIP'} || $ExternalInterface{'IPAddress'} || $ExternalIP || '';
68  +  +    $OUT .= "\n";
69  +       if ( $method eq 'smeIF' ) {  +       if ( $method eq 'smeIF' ) {
70  +               # we use SME db to get the external interface NAME : ppp0, eth1, tap0...  +               # we use SME db to get the external interface NAME : ppp0, eth1, tap0...
71  +               $Extinterface = $ExternalInterface{'Name'} ||$Extinterface;  +               $Extinterface = $ExternalInterface{'Name'} ||$Extinterface;
# Line 164  diff -Nur smeserver-ddclient-1.2.1.old/r Line 164  diff -Nur smeserver-ddclient-1.2.1.old/r
164       my $urlcheckip=$ddretrieve->prop('urlcheckip')|| 'checkip.dyndns.org';       my $urlcheckip=$ddretrieve->prop('urlcheckip')|| 'checkip.dyndns.org';
165       my $ssl=$ddretrieve->prop('SSL')|| 'yes';       my $ssl=$ddretrieve->prop('SSL')|| 'yes';
166  +    my $method=$ddretrieve->prop('method')||'web';  +    my $method=$ddretrieve->prop('method')||'web';
167  +    my $Extinterface=$ddretrieve->prop('Extinterface')||$ExtIF->prop('Name')||'eth1';  +    my $Extinterface=$ddretrieve->prop('Extinterface')||'';
168  +    my $cmd=$ddretrieve->prop('cmd')||'';  +    my $cmd=$ddretrieve->prop('cmd')||'';
169  +    my $forceIP=$ddretrieve->prop('ForceIP')||$ExtIF->prop('IPAddress')||'';  +    my $forceIP=$ddretrieve->prop('ForceIP')||'';
170    
171       print $q->startform (-method => 'POST',       print $q->startform (-method => 'POST',
172                           -action => $q->url (-absolute => 1));                           -action => $q->url (-absolute => 1));


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed