diff --git a/dns/dyndns/Makefile b/dns/dyndns/Makefile index 83f4d3674..2e495075b 100644 --- a/dns/dyndns/Makefile +++ b/dns/dyndns/Makefile @@ -1,6 +1,6 @@ PLUGIN_NAME= dyndns PLUGIN_VERSION= 1.14 -PLUGIN_REVISION= 2 +PLUGIN_REVISION= 3 PLUGIN_COMMENT= Dynamic DNS Support PLUGIN_MAINTAINER= franco@opnsense.org diff --git a/dns/dyndns/src/etc/rc.dyndns b/dns/dyndns/src/etc/rc.dyndns index 2369687ee..49872f4b1 100755 --- a/dns/dyndns/src/etc/rc.dyndns +++ b/dns/dyndns/src/etc/rc.dyndns @@ -43,7 +43,7 @@ if (isset($argv[1])) { if (empty($argument)) { dyndns_configure_do(true); } else { - $interface = lookup_gateway_interface_by_name($argument); + $interface = (new \OPNsense\Routing\Gateways(legacy_interfaces_details()))->getInterfaceName($argument); if (empty($interface)) { $interface = $argument; } diff --git a/dns/rfc2136/Makefile b/dns/rfc2136/Makefile index 5e7872ec0..962a399b1 100644 --- a/dns/rfc2136/Makefile +++ b/dns/rfc2136/Makefile @@ -1,6 +1,6 @@ PLUGIN_NAME= rfc2136 PLUGIN_VERSION= 1.4 -PLUGIN_REVISION= 2 +PLUGIN_REVISION= 3 PLUGIN_COMMENT= RFC-2136 Support PLUGIN_MAINTAINER= franco@opnsense.org PLUGIN_DEPENDS= bind912 diff --git a/dns/rfc2136/src/etc/rc.rfc2136 b/dns/rfc2136/src/etc/rc.rfc2136 index c536001e3..3aff8990d 100755 --- a/dns/rfc2136/src/etc/rc.rfc2136 +++ b/dns/rfc2136/src/etc/rc.rfc2136 @@ -43,7 +43,7 @@ if (isset($argv[1])) { if (empty($argument)) { rfc2136_configure_do(true); } else { - $interface = lookup_gateway_interface_by_name($argument); + $interface = (new \OPNsense\Routing\Gateways(legacy_interfaces_details()))->getInterfaceName($argument); if (empty($interface)) { $interface = $argument; }