summaryrefslogtreecommitdiffstats
path: root/etc/inc/dyndns.class
diff options
context:
space:
mode:
Diffstat (limited to 'etc/inc/dyndns.class')
-rw-r--r--etc/inc/dyndns.class12
1 files changed, 6 insertions, 6 deletions
diff --git a/etc/inc/dyndns.class b/etc/inc/dyndns.class
index e9eca07..e29309f 100644
--- a/etc/inc/dyndns.class
+++ b/etc/inc/dyndns.class
@@ -78,13 +78,13 @@
* - Gets the dice rolling for the update.
*/
function updatedns ($dnsService = '', $dnsHost = '', $dnsUser = '', $dnsPass = '',
- $dnsWildcard = 'OFF', $dnsMX = '', $dnsBackMX = '', $dnsWanip = '',
- $dnsServer = '', $dnsPort = '', $dnsUpdateURL = '', $if = '') {
+ $dnsWildcard = 'OFF', $dnsMX = '', $dnsIf = '', $dnsBackMX = '', $dnsWanip = '',
+ $dnsServer = '', $dnsPort = '', $dnsUpdateURL = '') {
global $config;
- $this->_cacheFile = "/cf/conf/dyndns_{$if}.cache";
- $this->_debugFile = "/var/etc/dyndns_{$if}.debug";
+ $this->_cacheFile = "/cf/conf/dyndns_{$dnsIf}.cache";
+ $this->_debugFile = "/var/etc/dyndns_{$dnsIf}.debug";
log_error("DynDns: updatedns() starting");
@@ -112,10 +112,10 @@
$this->_dnsPort = $dnsPort;
$this->_dnsWildcard = $dnsWildcard;
$this->_dnsMX = $dnsMX;
- $this->_if = $if;
+ $this->_if = $dnsIf;
if(!$wan_ip)
- $wan_ip = get_current_wan_address($if);
+ $wan_ip = get_current_wan_address($dnsIf);
$this->_dnsIP = $wan_ip;
$this->_debugID = rand(1000000, 9999999);
OpenPOWER on IntegriCloud