Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OpnSense
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kulya
OpnSense
Commits
645a6457
Commit
645a6457
authored
Jul 27, 2015
by
Franco Fichtner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dyndns: remove unused var; while reviewing #278
parent
33fc6801
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
25 deletions
+0
-25
dyndns.class
src/etc/inc/dyndns.class
+0
-25
No files found.
src/etc/inc/dyndns.class
View file @
645a6457
...
@@ -291,7 +291,6 @@
...
@@ -291,7 +291,6 @@
case
'dyndns'
:
case
'dyndns'
:
case
'dyndns-static'
:
case
'dyndns-static'
:
case
'dyndns-custom'
:
case
'dyndns-custom'
:
$needsIP
=
FALSE
;
if
(
$this
->
_dnsVerboseLog
)
if
(
$this
->
_dnsVerboseLog
)
log_error
(
"DynDNS: (
{
$this
->
_dnsHost
}
) DNS update() starting."
);
log_error
(
"DynDNS: (
{
$this
->
_dnsHost
}
) DNS update() starting."
);
if
(
isset
(
$this
->
_dnsWildcard
)
&&
$this
->
_dnsWildcard
!=
"OFF"
)
$this
->
_dnsWildcard
=
"ON"
;
if
(
isset
(
$this
->
_dnsWildcard
)
&&
$this
->
_dnsWildcard
!=
"OFF"
)
$this
->
_dnsWildcard
=
"ON"
;
...
@@ -306,7 +305,6 @@
...
@@ -306,7 +305,6 @@
curl_setopt
(
$ch
,
CURLOPT_URL
,
$server
.
$port
.
'?system=dyndns&hostname='
.
$this
->
_dnsHost
.
'&myip='
.
$this
->
_dnsIP
.
'&wildcard='
.
$this
->
_dnsWildcard
.
'&mx='
.
$this
->
_dnsMX
.
'&backmx=NO'
);
curl_setopt
(
$ch
,
CURLOPT_URL
,
$server
.
$port
.
'?system=dyndns&hostname='
.
$this
->
_dnsHost
.
'&myip='
.
$this
->
_dnsIP
.
'&wildcard='
.
$this
->
_dnsWildcard
.
'&mx='
.
$this
->
_dnsMX
.
'&backmx=NO'
);
break
;
break
;
case
'dhs'
:
case
'dhs'
:
$needsIP
=
TRUE
;
$post_data
[
'hostscmd'
]
=
'edit'
;
$post_data
[
'hostscmd'
]
=
'edit'
;
$post_data
[
'hostscmdstage'
]
=
'2'
;
$post_data
[
'hostscmdstage'
]
=
'2'
;
$post_data
[
'type'
]
=
'4'
;
$post_data
[
'type'
]
=
'4'
;
...
@@ -334,7 +332,6 @@
...
@@ -334,7 +332,6 @@
break
;
break
;
case
'noip'
:
case
'noip'
:
case
'noip-free'
:
case
'noip-free'
:
$needsIP
=
TRUE
;
curl_setopt
(
$ch
,
CURLOPT_SSL_VERIFYPEER
,
FALSE
);
curl_setopt
(
$ch
,
CURLOPT_SSL_VERIFYPEER
,
FALSE
);
$server
=
"https://dynupdate.no-ip.com/ducupdate.php"
;
$server
=
"https://dynupdate.no-ip.com/ducupdate.php"
;
$port
=
""
;
$port
=
""
;
...
@@ -355,7 +352,6 @@
...
@@ -355,7 +352,6 @@
curl_setopt
(
$ch
,
CURLOPT_URL
,
$server
.
$port
.
'?username='
.
urlencode
(
$this
->
_dnsUser
)
.
'&pass='
.
urlencode
(
$this
->
_dnsPass
)
.
'&hostname='
.
$this
->
_dnsHost
.
'&ip='
.
$iptoset
);
curl_setopt
(
$ch
,
CURLOPT_URL
,
$server
.
$port
.
'?username='
.
urlencode
(
$this
->
_dnsUser
)
.
'&pass='
.
urlencode
(
$this
->
_dnsPass
)
.
'&hostname='
.
$this
->
_dnsHost
.
'&ip='
.
$iptoset
);
break
;
break
;
case
'easydns'
:
case
'easydns'
:
$needsIP
=
TRUE
;
curl_setopt
(
$ch
,
CURLOPT_SSL_VERIFYPEER
,
FALSE
);
curl_setopt
(
$ch
,
CURLOPT_SSL_VERIFYPEER
,
FALSE
);
curl_setopt
(
$ch
,
CURLOPT_USERPWD
,
$this
->
_dnsUser
.
':'
.
$this
->
_dnsPass
);
curl_setopt
(
$ch
,
CURLOPT_USERPWD
,
$this
->
_dnsUser
.
':'
.
$this
->
_dnsPass
);
$server
=
"https://members.easydns.com/dyn/dyndns.php"
;
$server
=
"https://members.easydns.com/dyn/dyndns.php"
;
...
@@ -367,7 +363,6 @@
...
@@ -367,7 +363,6 @@
curl_setopt
(
$ch
,
CURLOPT_URL
,
$server
.
$port
.
'?hostname='
.
$this
->
_dnsHost
.
'&myip='
.
$this
->
_dnsIP
.
'&wildcard='
.
$this
->
_dnsWildcard
.
'&mx='
.
$this
->
_dnsMX
.
'&backmx='
.
$this
->
_dnsBackMX
);
curl_setopt
(
$ch
,
CURLOPT_URL
,
$server
.
$port
.
'?hostname='
.
$this
->
_dnsHost
.
'&myip='
.
$this
->
_dnsIP
.
'&wildcard='
.
$this
->
_dnsWildcard
.
'&mx='
.
$this
->
_dnsMX
.
'&backmx='
.
$this
->
_dnsBackMX
);
break
;
break
;
case
'hn'
:
case
'hn'
:
$needsIP
=
TRUE
;
curl_setopt
(
$ch
,
CURLOPT_SSL_VERIFYPEER
,
FALSE
);
curl_setopt
(
$ch
,
CURLOPT_SSL_VERIFYPEER
,
FALSE
);
curl_setopt
(
$ch
,
CURLOPT_USERPWD
,
$this
->
_dnsUser
.
':'
.
$this
->
_dnsPass
);
curl_setopt
(
$ch
,
CURLOPT_USERPWD
,
$this
->
_dnsUser
.
':'
.
$this
->
_dnsPass
);
$server
=
"http://dup.hn.org/vanity/update"
;
$server
=
"http://dup.hn.org/vanity/update"
;
...
@@ -379,7 +374,6 @@
...
@@ -379,7 +374,6 @@
curl_setopt
(
$ch
,
CURLOPT_URL
,
$server
.
$port
.
'?ver=1&IP='
.
$this
->
_dnsIP
);
curl_setopt
(
$ch
,
CURLOPT_URL
,
$server
.
$port
.
'?ver=1&IP='
.
$this
->
_dnsIP
);
break
;
break
;
case
'zoneedit'
:
case
'zoneedit'
:
$needsIP
=
FALSE
;
curl_setopt
(
$ch
,
CURLOPT_SSL_VERIFYPEER
,
FALSE
);
curl_setopt
(
$ch
,
CURLOPT_SSL_VERIFYPEER
,
FALSE
);
curl_setopt
(
$ch
,
CURLOPT_SSL_VERIFYHOST
,
FALSE
);
curl_setopt
(
$ch
,
CURLOPT_SSL_VERIFYHOST
,
FALSE
);
curl_setopt
(
$ch
,
CURLOPT_USERPWD
,
$this
->
_dnsUser
.
':'
.
$this
->
_dnsPass
);
curl_setopt
(
$ch
,
CURLOPT_USERPWD
,
$this
->
_dnsUser
.
':'
.
$this
->
_dnsPass
);
...
@@ -393,7 +387,6 @@
...
@@ -393,7 +387,6 @@
curl_setopt
(
$ch
,
CURLOPT_URL
,
"
{
$server
}{
$port
}
?host="
.
$this
->
_dnsHost
);
curl_setopt
(
$ch
,
CURLOPT_URL
,
"
{
$server
}{
$port
}
?host="
.
$this
->
_dnsHost
);
break
;
break
;
case
'dyns'
:
case
'dyns'
:
$needsIP
=
FALSE
;
$server
=
"https://www.dyns.cx/postscript011.php"
;
$server
=
"https://www.dyns.cx/postscript011.php"
;
$port
=
""
;
$port
=
""
;
if
(
$this
->
_dnsServer
)
if
(
$this
->
_dnsServer
)
...
@@ -403,7 +396,6 @@
...
@@ -403,7 +396,6 @@
curl_setopt
(
$ch
,
CURLOPT_URL
,
$server
.
$port
.
'?username='
.
urlencode
(
$this
->
_dnsUser
)
.
'&password='
.
$this
->
_dnsPass
.
'&host='
.
$this
->
_dnsHost
);
curl_setopt
(
$ch
,
CURLOPT_URL
,
$server
.
$port
.
'?username='
.
urlencode
(
$this
->
_dnsUser
)
.
'&password='
.
$this
->
_dnsPass
.
'&host='
.
$this
->
_dnsHost
);
break
;
break
;
case
'ods'
:
case
'ods'
:
$needsIP
=
FALSE
;
$misc_errno
=
0
;
$misc_errno
=
0
;
$misc_error
=
""
;
$misc_error
=
""
;
$server
=
"ods.org"
;
$server
=
"ods.org"
;
...
@@ -441,21 +433,17 @@
...
@@ -441,21 +433,17 @@
$this
->
_checkStatus
(
0
,
$code
);
$this
->
_checkStatus
(
0
,
$code
);
break
;
break
;
case
'freedns'
:
case
'freedns'
:
$needIP
=
FALSE
;
curl_setopt
(
$ch
,
CURLOPT_URL
,
'https://freedns.afraid.org/dynamic/update.php?'
.
$this
->
_dnsPass
);
curl_setopt
(
$ch
,
CURLOPT_URL
,
'https://freedns.afraid.org/dynamic/update.php?'
.
$this
->
_dnsPass
);
break
;
break
;
case
'dnsexit'
:
case
'dnsexit'
:
$needsIP
=
TRUE
;
curl_setopt
(
$ch
,
CURLOPT_URL
,
'https://www.dnsexit.com/RemoteUpdate.sv?login='
.
$this
->
_dnsUser
.
'&password='
.
$this
->
_dnsPass
.
'&host='
.
$this
->
_dnsHost
.
'&myip='
.
$this
->
_dnsIP
);
curl_setopt
(
$ch
,
CURLOPT_URL
,
'https://www.dnsexit.com/RemoteUpdate.sv?login='
.
$this
->
_dnsUser
.
'&password='
.
$this
->
_dnsPass
.
'&host='
.
$this
->
_dnsHost
.
'&myip='
.
$this
->
_dnsIP
);
break
;
break
;
case
'loopia'
:
case
'loopia'
:
$needsIP
=
TRUE
;
curl_setopt
(
$ch
,
CURLOPT_SSL_VERIFYPEER
,
FALSE
);
curl_setopt
(
$ch
,
CURLOPT_SSL_VERIFYPEER
,
FALSE
);
curl_setopt
(
$ch
,
CURLOPT_USERPWD
,
$this
->
_dnsUser
.
':'
.
$this
->
_dnsPass
);
curl_setopt
(
$ch
,
CURLOPT_USERPWD
,
$this
->
_dnsUser
.
':'
.
$this
->
_dnsPass
);
curl_setopt
(
$ch
,
CURLOPT_URL
,
'https://dns.loopia.se/XDynDNSServer/XDynDNS.php?hostname='
.
$this
->
_dnsHost
.
'&myip='
.
$this
->
_dnsIP
);
curl_setopt
(
$ch
,
CURLOPT_URL
,
'https://dns.loopia.se/XDynDNSServer/XDynDNS.php?hostname='
.
$this
->
_dnsHost
.
'&myip='
.
$this
->
_dnsIP
);
break
;
break
;
case
'opendns'
:
case
'opendns'
:
$needsIP
=
FALSE
;
if
(
isset
(
$this
->
_dnsWildcard
)
&&
$this
->
_dnsWildcard
!=
"OFF"
)
$this
->
_dnsWildcard
=
"ON"
;
if
(
isset
(
$this
->
_dnsWildcard
)
&&
$this
->
_dnsWildcard
!=
"OFF"
)
$this
->
_dnsWildcard
=
"ON"
;
curl_setopt
(
$ch
,
CURLOPT_SSL_VERIFYPEER
,
FALSE
);
curl_setopt
(
$ch
,
CURLOPT_SSL_VERIFYPEER
,
FALSE
);
curl_setopt
(
$ch
,
CURLOPT_USERPWD
,
$this
->
_dnsUser
.
':'
.
$this
->
_dnsPass
);
curl_setopt
(
$ch
,
CURLOPT_USERPWD
,
$this
->
_dnsUser
.
':'
.
$this
->
_dnsPass
);
...
@@ -469,14 +457,12 @@
...
@@ -469,14 +457,12 @@
break
;
break
;
case
'staticcling'
:
case
'staticcling'
:
$needsIP
=
FALSE
;
curl_setopt
(
$ch
,
CURLOPT_URL
,
'https://www.staticcling.org/update.html?login='
.
$this
->
_dnsUser
.
'&pass='
.
$this
->
_dnsPass
);
curl_setopt
(
$ch
,
CURLOPT_URL
,
'https://www.staticcling.org/update.html?login='
.
$this
->
_dnsUser
.
'&pass='
.
$this
->
_dnsPass
);
break
;
break
;
case
'dnsomatic'
:
case
'dnsomatic'
:
/* Example syntax
/* Example syntax
https://username:password@updates.dnsomatic.com/nic/update?hostname=yourhostname&myip=ipaddress&wildcard=NOCHG&mx=NOCHG&backmx=NOCHG
https://username:password@updates.dnsomatic.com/nic/update?hostname=yourhostname&myip=ipaddress&wildcard=NOCHG&mx=NOCHG&backmx=NOCHG
*/
*/
$needsIP
=
FALSE
;
if
(
$this
->
_dnsVerboseLog
)
if
(
$this
->
_dnsVerboseLog
)
log_error
(
"DNS-O-Matic: DNS update() starting."
);
log_error
(
"DNS-O-Matic: DNS update() starting."
);
if
(
isset
(
$this
->
_dnsWildcard
)
&&
$this
->
_dnsWildcard
!=
"OFF"
)
$this
->
_dnsWildcard
=
"ON"
;
if
(
isset
(
$this
->
_dnsWildcard
)
&&
$this
->
_dnsWildcard
!=
"OFF"
)
$this
->
_dnsWildcard
=
"ON"
;
...
@@ -501,7 +487,6 @@
...
@@ -501,7 +487,6 @@
/* Example:
/* Example:
https://dynamicdns.park-your-domain.com/update?host=[host_name]&domain=[domain.com]&password=[domain_password]&ip=[your_ip]
https://dynamicdns.park-your-domain.com/update?host=[host_name]&domain=[domain.com]&password=[domain_password]&ip=[your_ip]
*/
*/
$needsIP
=
FALSE
;
if
(
$this
->
_dnsVerboseLog
)
if
(
$this
->
_dnsVerboseLog
)
log_error
(
"Namecheap (
{
$this
->
_dnsHost
}
): DNS update() starting."
);
log_error
(
"Namecheap (
{
$this
->
_dnsHost
}
): DNS update() starting."
);
curl_setopt
(
$ch
,
CURLOPT_SSL_VERIFYPEER
,
FALSE
);
curl_setopt
(
$ch
,
CURLOPT_SSL_VERIFYPEER
,
FALSE
);
...
@@ -516,7 +501,6 @@
...
@@ -516,7 +501,6 @@
break
;
break
;
case
'he-net'
:
case
'he-net'
:
case
'he-net-v6'
:
case
'he-net-v6'
:
$needsIP
=
FALSE
;
if
(
$this
->
_dnsVerboseLog
)
if
(
$this
->
_dnsVerboseLog
)
log_error
(
"HE.net (
{
$this
->
_dnsHost
}
): DNS update() starting."
);
log_error
(
"HE.net (
{
$this
->
_dnsHost
}
): DNS update() starting."
);
$server
=
"https://dyn.dns.he.net/nic/update?"
;
$server
=
"https://dyn.dns.he.net/nic/update?"
;
...
@@ -525,7 +509,6 @@
...
@@ -525,7 +509,6 @@
curl_setopt
(
$ch
,
CURLOPT_URL
,
$server
.
'hostname='
.
$this
->
_dnsHost
.
'&password='
.
$this
->
_dnsPass
.
'&myip='
.
$this
->
_dnsIP
);
curl_setopt
(
$ch
,
CURLOPT_URL
,
$server
.
'hostname='
.
$this
->
_dnsHost
.
'&password='
.
$this
->
_dnsPass
.
'&myip='
.
$this
->
_dnsIP
);
break
;
break
;
case
'he-net-tunnelbroker'
:
case
'he-net-tunnelbroker'
:
$needsIP
=
FALSE
;
if
(
$this
->
_dnsVerboseLog
)
if
(
$this
->
_dnsVerboseLog
)
log_error
(
"HE.net Tunnelbroker: DNS update() starting."
);
log_error
(
"HE.net Tunnelbroker: DNS update() starting."
);
$server
=
"https://ipv4.tunnelbroker.net/ipv4_end.php?"
;
$server
=
"https://ipv4.tunnelbroker.net/ipv4_end.php?"
;
...
@@ -534,7 +517,6 @@
...
@@ -534,7 +517,6 @@
curl_setopt
(
$ch
,
CURLOPT_URL
,
$server
.
'tid='
.
$this
->
_dnsHost
);
curl_setopt
(
$ch
,
CURLOPT_URL
,
$server
.
'tid='
.
$this
->
_dnsHost
);
break
;
break
;
case
'selfhost'
:
case
'selfhost'
:
$needsIP
=
FALSE
;
if
(
$this
->
_dnsVerboseLog
)
if
(
$this
->
_dnsVerboseLog
)
log_error
(
"SelfHost: DNS update() starting."
);
log_error
(
"SelfHost: DNS update() starting."
);
if
(
isset
(
$this
->
_dnsWildcard
)
&&
$this
->
_dnsWildcard
!=
"OFF"
)
$this
->
_dnsWildcard
=
"ON"
;
if
(
isset
(
$this
->
_dnsWildcard
)
&&
$this
->
_dnsWildcard
!=
"OFF"
)
$this
->
_dnsWildcard
=
"ON"
;
...
@@ -609,7 +591,6 @@
...
@@ -609,7 +591,6 @@
case
'custom-v6'
:
case
'custom-v6'
:
if
(
$this
->
_dnsVerboseLog
)
if
(
$this
->
_dnsVerboseLog
)
log_error
(
"Custom DDNS (
{
$this
->
_dnsHost
}
): DNS update() starting."
);
log_error
(
"Custom DDNS (
{
$this
->
_dnsHost
}
): DNS update() starting."
);
if
(
strstr
(
$this
->
dnsUpdateURL
,
"%IP%"
))
{
$needsIP
=
TRUE
;}
else
{
$needsIP
=
FALSE
;}
if
(
$this
->
_dnsUser
!=
''
)
{
if
(
$this
->
_dnsUser
!=
''
)
{
if
(
$this
->
_curlIpresolveV4
)
if
(
$this
->
_curlIpresolveV4
)
curl_setopt
(
$ch
,
CURLOPT_IPRESOLVE
,
CURL_IPRESOLVE_V4
);
curl_setopt
(
$ch
,
CURLOPT_IPRESOLVE
,
CURL_IPRESOLVE_V4
);
...
@@ -626,7 +607,6 @@
...
@@ -626,7 +607,6 @@
curl_setopt
(
$ch
,
CURLOPT_URL
,
$server
);
curl_setopt
(
$ch
,
CURLOPT_URL
,
$server
);
break
;
break
;
case
'cloudflare'
:
case
'cloudflare'
:
$needsIP
=
TRUE
;
$dnsServer
=
'www.cloudflare.com'
;
$dnsServer
=
'www.cloudflare.com'
;
$dnsHost
=
str_replace
(
' '
,
''
,
$this
->
_dnsHost
);
$dnsHost
=
str_replace
(
' '
,
''
,
$this
->
_dnsHost
);
$URL
=
"https://
{
$dnsServer
}
/api.html?a=DIUP&email=
{
$this
->
_dnsUser
}
&tkn=
{
$this
->
_dnsPass
}
&ip=
{
$this
->
_dnsIP
}
&hosts=
{
$dnsHost
}
"
;
$URL
=
"https://
{
$dnsServer
}
/api.html?a=DIUP&email=
{
$this
->
_dnsUser
}
&tkn=
{
$this
->
_dnsPass
}
&ip=
{
$this
->
_dnsIP
}
&hosts=
{
$dnsHost
}
"
;
...
@@ -634,7 +614,6 @@
...
@@ -634,7 +614,6 @@
curl_setopt
(
$ch
,
CURLOPT_URL
,
$URL
);
curl_setopt
(
$ch
,
CURLOPT_URL
,
$URL
);
break
;
break
;
case
'eurodns'
:
case
'eurodns'
:
$needsIP
=
TRUE
;
if
(
$this
->
_dnsVerboseLog
)
if
(
$this
->
_dnsVerboseLog
)
log_error
(
"EuroDynDns (
{
$this
->
_dnsHost
}
) DNS update() starting."
);
log_error
(
"EuroDynDns (
{
$this
->
_dnsHost
}
) DNS update() starting."
);
curl_setopt
(
$ch
,
CURLOPT_SSL_VERIFYPEER
,
FALSE
);
curl_setopt
(
$ch
,
CURLOPT_SSL_VERIFYPEER
,
FALSE
);
...
@@ -646,7 +625,6 @@
...
@@ -646,7 +625,6 @@
curl_setopt
(
$ch
,
CURLOPT_URL
,
$server
.
$port
.
'?hostname='
.
$this
->
_dnsHost
.
'&myip='
.
$this
->
_dnsIP
);
curl_setopt
(
$ch
,
CURLOPT_URL
,
$server
.
$port
.
'?hostname='
.
$this
->
_dnsHost
.
'&myip='
.
$this
->
_dnsIP
);
break
;
break
;
case
'gratisdns'
:
case
'gratisdns'
:
$needsIP
=
FALSE
;
if
(
$this
->
_dnsVerboseLog
)
if
(
$this
->
_dnsVerboseLog
)
log_error
(
"GratisDNS.dk (
{
$this
->
_dnsHost
}
): DNS update() starting."
);
log_error
(
"GratisDNS.dk (
{
$this
->
_dnsHost
}
): DNS update() starting."
);
$server
=
"https://ssl.gratisdns.dk/ddns.phtml"
;
$server
=
"https://ssl.gratisdns.dk/ddns.phtml"
;
...
@@ -655,7 +633,6 @@
...
@@ -655,7 +633,6 @@
curl_setopt
(
$ch
,
CURLOPT_URL
,
$server
.
'?u='
.
$this
->
_dnsUser
.
'&p='
.
$this
->
_dnsPass
.
'&h='
.
$this
->
_dnsHost
.
'&d='
.
$domain
);
curl_setopt
(
$ch
,
CURLOPT_URL
,
$server
.
'?u='
.
$this
->
_dnsUser
.
'&p='
.
$this
->
_dnsPass
.
'&h='
.
$this
->
_dnsHost
.
'&d='
.
$domain
);
break
;
break
;
case
'ovh-dynhost'
:
case
'ovh-dynhost'
:
$needsIP
=
FALSE
;
if
(
$this
->
_dnsVerboseLog
)
if
(
$this
->
_dnsVerboseLog
)
log_error
(
"OVH DynHOST: (
{
$this
->
_dnsHost
}
) DNS update() starting."
);
log_error
(
"OVH DynHOST: (
{
$this
->
_dnsHost
}
) DNS update() starting."
);
if
(
isset
(
$this
->
_dnsWildcard
)
&&
$this
->
_dnsWildcard
!=
"OFF"
)
$this
->
_dnsWildcard
=
"ON"
;
if
(
isset
(
$this
->
_dnsWildcard
)
&&
$this
->
_dnsWildcard
!=
"OFF"
)
$this
->
_dnsWildcard
=
"ON"
;
...
@@ -670,7 +647,6 @@
...
@@ -670,7 +647,6 @@
curl_setopt
(
$ch
,
CURLOPT_URL
,
$server
.
$port
.
'?system=dyndns&hostname='
.
$this
->
_dnsHost
.
'&myip='
.
$this
->
_dnsIP
.
'&wildcard='
.
$this
->
_dnsWildcard
.
'&mx='
.
$this
->
_dnsMX
.
'&backmx=NO'
);
curl_setopt
(
$ch
,
CURLOPT_URL
,
$server
.
$port
.
'?system=dyndns&hostname='
.
$this
->
_dnsHost
.
'&myip='
.
$this
->
_dnsIP
.
'&wildcard='
.
$this
->
_dnsWildcard
.
'&mx='
.
$this
->
_dnsMX
.
'&backmx=NO'
);
break
;
break
;
case
'citynetwork'
:
case
'citynetwork'
:
$needsIP
=
TRUE
;
if
(
$this
->
_dnsVerboseLog
)
if
(
$this
->
_dnsVerboseLog
)
log_error
(
"City Network: (
{
$this
->
_dnsHost
}
) DNS update() starting."
);
log_error
(
"City Network: (
{
$this
->
_dnsHost
}
) DNS update() starting."
);
curl_setopt
(
$ch
,
CURLOPT_SSL_VERIFYPEER
,
FALSE
);
curl_setopt
(
$ch
,
CURLOPT_SSL_VERIFYPEER
,
FALSE
);
...
@@ -684,7 +660,6 @@
...
@@ -684,7 +660,6 @@
curl_setopt
(
$ch
,
CURLOPT_URL
,
$server
.
$port
.
'?hostname='
.
$this
->
_dnsHost
.
'&myip='
.
$this
->
_dnsIP
);
curl_setopt
(
$ch
,
CURLOPT_URL
,
$server
.
$port
.
'?hostname='
.
$this
->
_dnsHost
.
'&myip='
.
$this
->
_dnsIP
);
break
;
break
;
case
'duckdns'
:
case
'duckdns'
:
$needsIP
=
FALSE
;
if
(
$this
->
_dnsVerboseLog
)
if
(
$this
->
_dnsVerboseLog
)
log_error
(
"Duck DNS (
{
$this
->
_dnsHost
}
): DNS update() starting."
);
log_error
(
"Duck DNS (
{
$this
->
_dnsHost
}
): DNS update() starting."
);
$server
=
"https://www.duckdns.org/update"
;
$server
=
"https://www.duckdns.org/update"
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment