summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorErmal Luçi <ermal.luci@gmail.com>2012-12-26 03:10:38 -0800
committerErmal Luçi <ermal.luci@gmail.com>2012-12-26 03:10:38 -0800
commitc7421820a717802c49cf52c607e7ebdaee46f1e5 (patch)
tree145424edddd25068bcd93851b4d34e6d677f32f1 /etc
parentfca9275172bdc7cde7159886bb0396cc01690653 (diff)
parent786ff5ebd9640e70d9fbdaac5ce7c2d87355fa2c (diff)
downloadpfsense-c7421820a717802c49cf52c607e7ebdaee46f1e5.zip
pfsense-c7421820a717802c49cf52c607e7ebdaee46f1e5.tar.gz
Merge pull request #289 from phildd/master
Handle null parameter to services_dyndns_configure
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/services.inc10
1 files changed, 2 insertions, 8 deletions
diff --git a/etc/inc/services.inc b/etc/inc/services.inc
index d5c6b3a..4e6a532 100644
--- a/etc/inc/services.inc
+++ b/etc/inc/services.inc
@@ -6,7 +6,7 @@
originally part of m0n0wall (http://m0n0.ch/wall)
Copyright (C) 2003-2004 Manuel Kasper <mk@neon1.net>.
- Copyright (C) 2010 Ermal Lu�i
+ Copyright (C) 2010 Ermal Luci
All rights reserved.
Redistribution and use in source and binary forms, with or without
@@ -1493,15 +1493,9 @@ function services_dyndns_configure($int = "") {
echo gettext("Starting DynDNS clients...");
foreach ($dyndnscfg as $dyndns) {
- $failovergroup = interface_gateway_group_member($int);
- if (!empty($int) && $int == $dyndns['interface']) {
+ if ((empty($int)) || ($int == $dyndns['interface']) || (is_array($gwgroups[$dyndns['interface']]))) {
services_dyndns_configure_client($dyndns);
sleep(1);
- } elseif (is_array($gwgroups[$dyndns['interface']])){
- services_dyndns_configure_client($dyndns);
- sleep(1);
- } else {
- continue;
}
}
OpenPOWER on IntegriCloud