summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2013-04-12 19:08:00 +0000
committerErmal <eri@pfsense.org>2013-04-12 19:08:00 +0000
commit155362f79abcf7900812908cd1a31114a574c10a (patch)
tree4bcc81d460f94feb07b02493cdc21990af713af9 /etc
parent8f10998b3a07e2ac2635157c28f4cad01822c956 (diff)
downloadpfsense-155362f79abcf7900812908cd1a31114a574c10a.zip
pfsense-155362f79abcf7900812908cd1a31114a574c10a.tar.gz
Check if the argument is a gateway or an interface
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/gwlb.inc2
-rwxr-xr-xetc/rc.dyndns.update7
2 files changed, 6 insertions, 3 deletions
diff --git a/etc/inc/gwlb.inc b/etc/inc/gwlb.inc
index 813cf40..d7e1f53 100644
--- a/etc/inc/gwlb.inc
+++ b/etc/inc/gwlb.inc
@@ -91,7 +91,7 @@ rrd interval 60s;
## These parameters can be overridden in a specific alarm configuration
alarm default {
- command on "/usr/local/sbin/pfSctl -c 'service reload dyndnsall' -c 'service reload ipsecdns' -c 'service reload openvpn' -c 'filter reload' "
+ command on "/usr/local/sbin/pfSctl -c 'service reload dyndns %T' -c 'service reload ipsecdns %T' -c 'service reload openvpn %T' -c 'filter reload' "
command off "/usr/local/sbin/pfSctl -c 'service reload dyndnsall' -c 'service reload ipsecdns' -c 'service reload openvpn' -c 'filter reload' "
combine 10s
}
diff --git a/etc/rc.dyndns.update b/etc/rc.dyndns.update
index 557113c..501373d 100755
--- a/etc/rc.dyndns.update
+++ b/etc/rc.dyndns.update
@@ -42,8 +42,11 @@ if(empty($argument)) {
services_dyndns_configure();
services_dnsupdate_process();
} else {
- services_dyndns_configure($argument);
- services_dnsupdate_process($argument);
+ $interface = lookup_gateway_interface_by_name($argument);
+ if (empty($interface))
+ $interface = $argument;
+ services_dyndns_configure($interface);
+ services_dnsupdate_process($interface);
}
?>
OpenPOWER on IntegriCloud