mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Add separate bindip for usepublicip case. Fixes #7446.
This commit is contained in:
parent
1bf69a00b9
commit
e3020ddc94
@ -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(
|
||||
|
||||
Loading…
Reference in New Issue
Block a user