summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorderelict-pf <cjl@netgate.com>2017-04-02 21:19:55 -0700
committerjim-p <jimp@pfsense.org>2017-04-03 10:47:17 -0400
commite3020ddc94e0c140080ff9dcd6fc0fd93d5da53d (patch)
tree4555a3d2950b3c9ba5f3b539fefcf90164decc4a /src
parent1bf69a00b9f6c1b8e98ed6dc4c78c8cb8403dc68 (diff)
downloadpfsense-e3020ddc94e0c140080ff9dcd6fc0fd93d5da53d.zip
pfsense-e3020ddc94e0c140080ff9dcd6fc0fd93d5da53d.tar.gz
Add separate bindip for usepublicip case. Fixes #7446.
Diffstat (limited to 'src')
-rw-r--r--src/etc/inc/services.inc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/etc/inc/services.inc b/src/etc/inc/services.inc
index 561d6d4..34091eb 100644
--- a/src/etc/inc/services.inc
+++ b/src/etc/inc/services.inc
@@ -2524,8 +2524,10 @@ function services_dnsupdate_process($int = "", $updatehost = "", $forced = false
if (isset($dnsupdate['usepublicip'])) {
$wanip = dyndnsCheckIP($if);
+ $bindip = get_interface_ip($if);
} else {
$wanip = get_interface_ip($if);
+ $bindip = $wanip;
}
$wanipv6 = get_interface_ipv6($if);
@@ -2620,7 +2622,7 @@ EOD;
"{$dnsupdate['host']}. A\n";
$upinst .= "update add {$dnsupdate['host']}. " .
"{$dnsupdate['ttl']} A {$wanip}\n";
- $upinst .= "local ${wanip}\n";
+ $upinst .= "local ${bindip}\n";
$need_update = true;
} else {
log_error(sprintf(gettext(
OpenPOWER on IntegriCloud