diff options
author | Florian Asche <github@florian-asche.de> | 2014-03-10 00:35:20 +0100 |
---|---|---|
committer | Florian Asche <github@florian-asche.de> | 2014-03-10 00:35:20 +0100 |
commit | 09cb9dee691fc24737390965c622a15e3b9355d3 (patch) | |
tree | f326f3d0df8b0d90cf40f1f43be23470abf1ff9b | |
parent | 23d3e72ce89a474d4ce6143c04e8237e870b4b92 (diff) | |
download | pfsense-09cb9dee691fc24737390965c622a15e3b9355d3.zip pfsense-09cb9dee691fc24737390965c622a15e3b9355d3.tar.gz |
Update services.inc
Added missing usepublicip with dyndnsCheckIP
-rw-r--r-- | etc/inc/services.inc | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/etc/inc/services.inc b/etc/inc/services.inc index e4fcdb0..bd6804b 100644 --- a/etc/inc/services.inc +++ b/etc/inc/services.inc @@ -2106,7 +2106,13 @@ function services_dnsupdate_process($int = "", $updatehost = "", $forced = false /* determine interface name */ $if = get_real_interface($dnsupdate['interface']); - $wanip = get_interface_ip($dnsupdate['interface']); + + if (isset($dnsupdate['usepublicip'])) + $wanip = dyndnsCheckIP($dnsupdate['interface']); + else + $wanip = get_interface_ip($dnsupdate['interface']); + + //$wanip = get_interface_ip($dnsupdate['interface']); $wanipv6 = get_interface_ipv6($dnsupdate['interface']); $cacheFile = "{$g['conf_path']}/dyndns_{$dnsupdate['interface']}_rfc2136_" . escapeshellarg($dnsupdate['host']) . "_{$dnsupdate['server']}.cache"; |