diff options
author | Ermal Luçi <eri@pfsense.org> | 2008-12-25 21:22:49 +0000 |
---|---|---|
committer | Ermal Luçi <eri@pfsense.org> | 2008-12-25 21:22:49 +0000 |
commit | 31b6100555ba73bf7d23ecdd5429e96eecf3360f (patch) | |
tree | a166d25e12b89891f38b35727791409079a6000d /etc | |
parent | a815685ebdcffd3a095e187452589525190dba66 (diff) | |
download | pfsense-31b6100555ba73bf7d23ecdd5429e96eecf3360f.zip pfsense-31b6100555ba73bf7d23ecdd5429e96eecf3360f.tar.gz |
Pass down the friendly interface to dyndns to correct problems with find the interface ip and binding of curl.
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/dyndns.class | 2 | ||||
-rw-r--r-- | etc/inc/services.inc | 5 |
2 files changed, 2 insertions, 5 deletions
diff --git a/etc/inc/dyndns.class b/etc/inc/dyndns.class index c448112..0506b31 100644 --- a/etc/inc/dyndns.class +++ b/etc/inc/dyndns.class @@ -118,7 +118,7 @@ $this->_dnsPort = $dnsPort; $this->_dnsWildcard = $dnsWildcard; $this->_dnsMX = $dnsMX; - $this->_if = $dnsIf; + $this->_if = get_real_interface($dnsIf); $this->_dnsIP = get_interface_ip($dnsIf); $this->_debugID = rand(1000000, 9999999); diff --git a/etc/inc/services.inc b/etc/inc/services.inc index a68f57f..ea7e82f 100644 --- a/etc/inc/services.inc +++ b/etc/inc/services.inc @@ -463,9 +463,6 @@ function services_dyndns_reset($interface = "wan" ) { function services_dyndns_configure_client($conf) { - /* determine interface name */ - $if = get_real_interface($conf['interface']); - /* load up the dyndns.class */ require_once("dyndns.class"); @@ -476,7 +473,7 @@ function services_dyndns_configure_client($conf) { $dnsUser = $conf['username'], $dnsPass = $conf['password'], $dnsWilcard = $conf['wildcard'], - $dnsMX = $conf['mx'], $dnsIf = "{$if}"); + $dnsMX = $conf['mx'], $dnsIf = "{$conf['interface']}"); } |