summaryrefslogtreecommitdiffstats
path: root/src/etc/inc/services.inc
diff options
context:
space:
mode:
Diffstat (limited to 'src/etc/inc/services.inc')
-rw-r--r--src/etc/inc/services.inc5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/etc/inc/services.inc b/src/etc/inc/services.inc
index a37a9a3..a14b245 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,6 +2622,7 @@ EOD;
"{$dnsupdate['host']}. A\n";
$upinst .= "update add {$dnsupdate['host']}. " .
"{$dnsupdate['ttl']} A {$wanip}\n";
+ $upinst .= "local {$bindip}\n";
$need_update = true;
} else {
log_error(sprintf(gettext(
@@ -2867,6 +2870,8 @@ function install_cron_job($command, $active = false, $minute = "0", $hour = "*",
if ($is_installed == true) {
unset($config['cron']['item'][$x]);
$change_message = "Removed cron job for %s";
+ } else {
+ $cron_changed = false;
}
}
OpenPOWER on IntegriCloud