summaryrefslogtreecommitdiffstats
path: root/etc/rc.dyndns.update
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/rc.dyndns.update
parent8f10998b3a07e2ac2635157c28f4cad01822c956 (diff)
downloadpfsense-155362f79abcf7900812908cd1a31114a574c10a.zip
pfsense-155362f79abcf7900812908cd1a31114a574c10a.tar.gz
Check if the argument is a gateway or an interface
Diffstat (limited to 'etc/rc.dyndns.update')
-rwxr-xr-xetc/rc.dyndns.update7
1 files changed, 5 insertions, 2 deletions
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