diff options
Diffstat (limited to 'etc/rc.dyndns.update')
-rwxr-xr-x | etc/rc.dyndns.update | 7 |
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); } ?> |