summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--etc/inc/services.inc4
-rwxr-xr-xetc/rc.newwanip4
2 files changed, 7 insertions, 1 deletions
diff --git a/etc/inc/services.inc b/etc/inc/services.inc
index 638d881..3a206a4 100644
--- a/etc/inc/services.inc
+++ b/etc/inc/services.inc
@@ -385,6 +385,10 @@ function services_dyndns_configure() {
}
} else {
sleep(1);
+ if($config['system']['use_old_dyndns'] <> "") {
+ services_dyndns_configure_old();
+ exit;
+ }
}
$dns = new updatedns($dnsService = $config['dyndns']['type'],
diff --git a/etc/rc.newwanip b/etc/rc.newwanip
index 09b666b..4d01a62 100755
--- a/etc/rc.newwanip
+++ b/etc/rc.newwanip
@@ -81,7 +81,9 @@
log_error("Informational: DHClient spawned /etc/rc.newwanip and the new ip is {$interface} - {$curwanip}.");
/* after IP change, update DynDNS */
- services_dyndns_configure();
+ if(!$config['system']['use_old_dyndns']) {
+ services_dyndns_configure();
+ }
filter_configure();
OpenPOWER on IntegriCloud