/[smecontribs]/rpms/smeserver-ddclient/contribs10/smeserver-ddclient-1.3.0-Update-SM2-code-for-new-services-and-protocols.patch
ViewVC logotype

Diff of /rpms/smeserver-ddclient/contribs10/smeserver-ddclient-1.3.0-Update-SM2-code-for-new-services-and-protocols.patch

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

Revision 1.3 by brianr, Mon Dec 4 15:19:27 2023 UTC Revision 1.5 by brianr, Thu Dec 14 10:24:43 2023 UTC
# Line 16  diff -urN smeserver-ddclient-1.3.0.old/r Line 16  diff -urN smeserver-ddclient-1.3.0.old/r
16                  $OUT .= ", fwv4-skip='$fwskip' " if ( $fwskip ne '' );                  $OUT .= ", fwv4-skip='$fwskip' " if ( $fwskip ne '' );
17  diff -urN smeserver-ddclient-1.3.0.old/root/usr/share/smanager/lib/SrvMngr/Controller/Ddclient.pm smeserver-ddclient-1.3.0/root/usr/share/smanager/lib/SrvMngr/Controller/Ddclient.pm  diff -urN smeserver-ddclient-1.3.0.old/root/usr/share/smanager/lib/SrvMngr/Controller/Ddclient.pm smeserver-ddclient-1.3.0/root/usr/share/smanager/lib/SrvMngr/Controller/Ddclient.pm
18  --- smeserver-ddclient-1.3.0.old/root/usr/share/smanager/lib/SrvMngr/Controller/Ddclient.pm     2023-11-10 16:11:05.915271983 +0000  --- smeserver-ddclient-1.3.0.old/root/usr/share/smanager/lib/SrvMngr/Controller/Ddclient.pm     2023-11-10 16:11:05.915271983 +0000
19  +++ smeserver-ddclient-1.3.0/root/usr/share/smanager/lib/SrvMngr/Controller/Ddclient.pm 2023-12-04 14:53:00.000000000 +0000  +++ smeserver-ddclient-1.3.0/root/usr/share/smanager/lib/SrvMngr/Controller/Ddclient.pm 2023-12-14 10:17:00.000000000 +0000
20  @@ -114,90 +114,164 @@  @@ -114,90 +114,164 @@
21    
22   my %ddc_datas = ();   my %ddc_datas = ();
# Line 26  diff -urN smeserver-ddclient-1.3.0.old/r Line 26  diff -urN smeserver-ddclient-1.3.0.old/r
26  +       # Router/Firewall devices from which it can get ip address  +       # Router/Firewall devices from which it can get ip address
27  +       #  +       #
28  +       my $devices = ( [  +       my $devices = ( [
29  +               [ '2wire' => '2Wire 1701HG Gateway' ],  +               [ '2Wire 1701HG Gateway' => '2wire' ],
30  +               [ '3com-3c886a' => '3com 3c886a 56k Lan Modem' ],  +               [ '3com 3c886a 56k Lan Modem' => '3com-3c886a' ],
31  +               [ '3com-oc-remote812' => '3com OfficeConnect Remote 812' ],  +               [ '3com OfficeConnect Remote 812' => '3com-oc-remote812' ],
32  +               [ 'alcatel-510' => 'Alcatel Speed Touch 510' ],  +               [ 'Alcatel Speed Touch 510' => 'alcatel-510' ],
33  +               [ 'alcatel-530' => 'Alcatel/Thomson SpeedTouch 530' ],  +               [ 'Alcatel/Thomson SpeedTouch 530' => 'alcatel-530' ],
34  +               [ 'alcatel-stp' => 'Alcatel Speed Touch Pro' ],  +               [ 'Alcatel Speed Touch Pro' => 'alcatel-stp' ],
35  +               [ 'allnet-1298' => 'Allnet 1298' ],  +               [ 'Allnet 1298' => 'allnet-1298' ],
36  +               [ 'cayman-3220h' => 'Cayman 3220-H DSL' ],  +               [ 'Cayman 3220-H DSL' => 'cayman-3220h' ],
37  +               [ 'dlink-524' => 'D-Link DI-524' ],  +               [ 'D-Link DI-524' => 'dlink-524' ],
38  +               [ 'dlink-604' => 'D-Link DI-604' ],  +               [ 'D-Link DI-604' => 'dlink-604' ],
39  +               [ 'D-Link DI-614+' => 'dlink-614' ],  +               [ 'dlink-614' => 'D-Link DI-614+' ],
40  +               [ 'E-tech Router' => 'e-tech' ],  +               [ 'e-tech' => 'E-tech Router' ],
41  +               [ 'ELSA LanCom DSL/10 DSL FW' => 'elsa-lancom-dsl10' ],  +               [ 'elsa-lancom-dsl10' => 'ELSA LanCom DSL/10 DSL FW' ],
42  +               [ 'ELSA LanCom DSL/10 DSL FW (isdn ch01)' => 'elsa-lancom-dsl10-ch01' ],  +               [ 'elsa-lancom-dsl10-ch01' => 'ELSA LanCom DSL/10 DSL FW (isdn ch01)' ],
43  +               [ 'ELSA LanCom DSL/10 DSL FW (isdn ch01)' => 'elsa-lancom-dsl10-ch02' ],  +               [ 'elsa-lancom-dsl10-ch02' => 'ELSA LanCom DSL/10 DSL FW (isdn ch01)' ],
44  +               [ 'Linksys FW' => 'linksys' ],  +               [ 'linksys' => 'Linksys FW' ],
45  +               [ 'Linksys RV042 Dual Homed Router WAN Port 2' => 'linksys-rv042-wan1' ],  +               [ 'linksys-rv042-wan1' => 'Linksys RV042 Dual Homed Router WAN Port 2' ],
46  +               [ 'Linksys RV042 Dual Homed Router WAN Port 2' => 'linksys-rv042-wan2' ],  +               [ 'linksys-rv042-wan2' => 'Linksys RV042 Dual Homed Router WAN Port 2' ],
47  +               [ 'Linksys FW version 2' => 'linksys-ver2' ],  +               [ 'linksys-ver2' => 'Linksys FW version 2' ],
48  +               [ 'Linksys FW version 3' => 'linksys-ver3' ],  +               [ 'linksys-ver3' => 'Linksys FW version 3' ],
49  +               [ 'Linksys WCG200 FW' => 'linksys-wcg200' ],  +               [ 'linksys-wcg200' => 'Linksys WCG200 FW' ],
50  +               [ 'Linksys WRT854G FW' => 'linksys-wrt854g' ],  +               [ 'linksys-wrt854g' => 'Linksys WRT854G FW' ],
51  +               [ 'MaxGate UGATE-3x00 FW' => 'maxgate-ugate3x00' ],  +               [ 'maxgate-ugate3x00' => 'MaxGate UGATE-3x00 FW' ],
52  +               [ 'NetComm NB3' => 'netcomm-nb3' ],  +               [ 'netcomm-nb3' => 'NetComm NB3' ],
53  +               [ 'netgear-dg834g' => 'netgear-dg834g' ],  +               [ 'netgear-dg834g' => 'netgear-dg834g' ],
54  +               [ 'Netgear RP614 FW' => 'netgear-rp614' ],  +               [ 'netgear-rp614' => 'Netgear RP614 FW' ],
55  +               [ 'Netgear FW' => 'netgear-rt3xx' ],  +               [ 'netgear-rt3xx' => 'Netgear FW' ],
56  +               [ 'Netgear WGT624' => 'netgear-wgt624' ],  +               [ 'netgear-wgt624' => 'Netgear WGT624' ],
57  +               [ 'Netgear WPN824 FW' => 'netgear-wpn824' ],  +               [ 'netgear-wpn824' => 'Netgear WPN824 FW' ],
58  +               [ 'Netopia R910 FW' => 'netopia-r910' ],  +               [ 'netopia-r910' => 'Netopia R910 FW' ],
59  +               [ 'olitec-SX200' => 'olitec-SX200' ],  +               [ 'olitec-SX200' => 'olitec-SX200' ],
60  +               [ 'Linksys RTP300' => 'rtp300' ],  +               [ 'rtp300' => 'Linksys RTP300' ],
61  +               [ 'Siemens SpeedStream 4200' => 'siemens-ss4200' ],  +               [ 'siemens-ss4200' => 'Siemens SpeedStream 4200' ],
62  +               [ 'Sitecom DC-202 FW' => 'sitecom-dc202' ],  +               [ 'sitecom-dc202' => 'Sitecom DC-202 FW' ],
63  +               [ 'SMC Barricade FW' => 'smc-barricade' ],  +               [ 'smc-barricade' => 'SMC Barricade FW' ],
64  +               [ 'SMC Barricade FW (7004VBR model config)' => 'smc-barricade-7004vbr' ],  +               [ 'smc-barricade-7004vbr' => 'SMC Barricade FW (7004VBR model config)' ],
65  +               [ 'SMC Barricade 7401BRA FW' => 'smc-barricade-7401bra' ],  +               [ 'smc-barricade-7401bra' => 'SMC Barricade 7401BRA FW' ],
66  +               [ 'SMC Barricade FW (alternate config)' => 'smc-barricade-alt' ],  +               [ 'smc-barricade-alt' => 'SMC Barricade FW (alternate config)' ],
67  +               [ 'SOHOWare BroadGuard NBG800' => 'sohoware-nbg800' ],  +               [ 'sohoware-nbg800' => 'SOHOWare BroadGuard NBG800' ],
68  +               [ 'Sveasoft WRT54G/WRT54GS' => 'sveasoft' ],  +               [ 'sveasoft' => 'Sveasoft WRT54G/WRT54GS' ],
69  +               [ 'Thomson SpeedTouch 536v6' => 'thomson-st536v6' ],  +               [ 'thomson-st536v6' => 'Thomson SpeedTouch 536v6' ],
70  +               [ 'Thomson/Technicolor TG782' => 'thomson-tg782' ],  +               [ 'thomson-tg782' => 'Thomson/Technicolor TG782' ],
71  +               [ 'Vigor 2200 USB' => 'vigor-2200usb' ],  +               [ 'vigor-2200usb' => 'Vigor 2200 USB' ],
72  +               [ 'Watchguard Edge X FW' => 'watchguard-edge-x' ],  +               [ 'watchguard-edge-x' => 'Watchguard Edge X FW' ],
73  +               [ 'Watchguard SOHO FW' => 'watchguard-soho' ],  +               [ 'watchguard-soho' => 'Watchguard SOHO FW' ],
74  +               [ 'Westell C90-610015-06 DSL Router' => 'westell-6100' ],  +               [ 'westell-6100' => 'Westell C90-610015-06 DSL Router' ],
75  +               [ 'Xsense Aero' => 'xsense-aero' ]  +               [ 'xsense-aero' => 'Xsense Aero' ]      
76  +       ] );  +       ] );
77  +        return $devices;  +        return $devices;
78  +  +
# Line 93  diff -urN smeserver-ddclient-1.3.0.old/r Line 93  diff -urN smeserver-ddclient-1.3.0.old/r
93  +       # Web Services from which it can get ip address  +       # Web Services from which it can get ip address
94  +       #  +       #
95  +       my $webservices = ( [  +       my $webservices = ( [
96  +               [ 'dyndnshttp://checkip.dyndns.org/' => 'dyndns' ],  +               [ 'dyndns-http://checkip.dyndns.org/' => 'dyndns' ],
97  +               [ 'freednshttps://freedns.afraid.org/dynamic/check.php' => 'freedns' ],  +               [ 'freedns-https://freedns.afraid.org/dynamic/check.php' => 'freedns' ],
98  +               [ 'googledomainshttps://domains.google.com/checkip' => 'googledomains' ],  +               [ 'googledomains-https://domains.google.com/checkip' => 'googledomains' ],
99  +               [ 'hehttps://checkip.dns.he.net/' => 'he' ],  +               [ 'he-https://checkip.dns.he.net/' => 'he' ],
100  +               [ 'ip4only.mehttps://ip4only.me/api/' => 'ip4only.me' ],  +               [ 'ip4only.me-https://ip4only.me/api/' => 'ip4only.me' ],
101  +               [ 'ip6only.mehttps://ip6only.me/api/' => 'ip6only.me' ],  +               [ 'ip6only.me-https://ip6only.me/api/' => 'ip6only.me' ],
102  +               [ 'ipify-ipv4https://api.ipify.org/' => 'ipify-ipv4' ],  +               [ 'ipify-ipv4-https://api.ipify.org/' => 'ipify-ipv4' ],
103  +               [ 'ipify-ipv6https://api6.ipify.org/' => 'ipify-ipv6' ],  +               [ 'ipify-ipv6-https://api6.ipify.org/' => 'ipify-ipv6' ],
104  +               [ 'loopiahttps://dns.loopia.se/checkip/checkip.php' => 'loopia' ],  +               [ 'loopia:-https://dns.loopia.se/checkip/checkip.php' => 'loopia' ],
105  +               [ 'myonlineportalhttps://myonlineportal.net/checkip' => 'myonlineportal' ],  +               [ 'myonlineportal-https://myonlineportal.net/checkip' => 'myonlineportal' ],
106  +               [ 'noip-ipv4http://ip1.dynupdate.no-ip.com/' => 'noip-ipv4' ],  +               [ 'noip-ipv4-http://ip1.dynupdate.no-ip.com/' => 'noip-ipv4' ],
107  +               [ 'noip-ipv6http://ip1.dynupdate6.no-ip.com/' => 'noip-ipv6' ],  +               [ 'noip-ipv6-http://ip1.dynupdate6.no-ip.com/' => 'noip-ipv6' ],
108  +               [ 'nsupdate.info-ipv4https://ipv4.nsupdate.info/myip' => 'nsupdate.info-ipv4' ],  +               [ 'nsupdate.info-ipv4-https://ipv4.nsupdate.info/myip' => 'nsupdate.info-ipv4' ],
109  +               [ 'nsupdate.info-ipv6https://ipv6.nsupdate.info/myip' => 'nsupdate.info-ipv6' ],  +               [ 'nsupdate.info-ipv6-https://ipv6.nsupdate.info/myip' => 'nsupdate.info-ipv6' ],
110  +               [ 'zoneedithttps://dynamic.zoneedit.com/checkip.html' => 'zoneedit' ]  +               [ 'zoneedit-https://dynamic.zoneedit.com/checkip.html' => 'zoneedit' ]
111  +       ] );  +       ] );
112  +       return $webservices  +       return $webservices
113  +  +
# Line 443  diff -urN smeserver-ddclient-1.3.0.old/r Line 443  diff -urN smeserver-ddclient-1.3.0.old/r
443       }       }
444       else { $ddc_datas{"error"} = $retmsg; }       else { $ddc_datas{"error"} = $retmsg; }
445       do_display( $c, %ddc_datas );       do_display( $c, %ddc_datas );
446    @@ -450,7 +541,7 @@
447    
448             foreach $domain ( sort @virtualDomains ) {
449                 my %properties = $domaindb->get($domain)->props;
450    -            my $test = $domaindb->get_prop( $domain, "dns" ) || '';
451    +            my $test = $domaindb->get($domain) || '';
452                 my %extraprops;
453                 if ( $test ne '' ) {
454                     %extraprops = $domaindb->get($domain)->props;
455  @@ -567,6 +658,8 @@  @@ -567,6 +658,8 @@
456       my $Extinterface = $ddretrieve->prop('Extinterface') || '';       my $Extinterface = $ddretrieve->prop('Extinterface') || '';
457       my $cmd          = $ddretrieve->prop('cmd') || '';       my $cmd          = $ddretrieve->prop('cmd') || '';
# Line 735  diff -urN smeserver-ddclient-1.3.0.old/r Line 744  diff -urN smeserver-ddclient-1.3.0.old/r
744                  </span><span class=data>                  </span><span class=data>
745  diff -urN smeserver-ddclient-1.3.0.old/root/usr/share/smanager/themes/default/templates/partials/_ddc_paramlist.html.ep smeserver-ddclient-1.3.0/root/usr/share/smanager/themes/default/templates/partials/_ddc_paramlist.html.ep  diff -urN smeserver-ddclient-1.3.0.old/root/usr/share/smanager/themes/default/templates/partials/_ddc_paramlist.html.ep smeserver-ddclient-1.3.0/root/usr/share/smanager/themes/default/templates/partials/_ddc_paramlist.html.ep
746  --- smeserver-ddclient-1.3.0.old/root/usr/share/smanager/themes/default/templates/partials/_ddc_paramlist.html.ep       2023-11-10 16:11:05.902271946 +0000  --- smeserver-ddclient-1.3.0.old/root/usr/share/smanager/themes/default/templates/partials/_ddc_paramlist.html.ep       2023-11-10 16:11:05.902271946 +0000
747  +++ smeserver-ddclient-1.3.0/root/usr/share/smanager/themes/default/templates/partials/_ddc_paramlist.html.ep   2023-12-04 10:53:00.000000000 +0000  +++ smeserver-ddclient-1.3.0/root/usr/share/smanager/themes/default/templates/partials/_ddc_paramlist.html.ep   2023-12-14 09:58:00.000000000 +0000
748  @@ -1,4 +1,9 @@  @@ -1,4 +1,9 @@
749   <div id='paramlist'>   <div id='paramlist'>
750  +  <script>  +  <script>
# Line 854  diff -urN smeserver-ddclient-1.3.0.old/r Line 863  diff -urN smeserver-ddclient-1.3.0.old/r
863  +                               %=l 'Web service'  +                               %=l 'Web service'
864  +                       </span><span class=data>  +                       </span><span class=data>
865  +                               % param retrievewebservice=>$ddc_datas->{"params"}->{"urlcheckip"} unless param 'retrievewebservice';  +                               % param retrievewebservice=>$ddc_datas->{"params"}->{"urlcheckip"} unless param 'retrievewebservice';
866  +                               %=select_field  retrievewebservice=>$dnslabels  +                               %=select_field  retrievewebservice=>$webservices
867  +                       </span><br />  +                       </span><br />
868  +               </div>  +               </div>
869  +  +


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