From 2d750f903cc280036faf2c548832e6743d790ba8 Mon Sep 17 00:00:00 2001 From: Ad Schellevis Date: Fri, 12 Apr 2019 15:51:52 +0200 Subject: [PATCH] dyndns, rfc2136, refactor lookup_gateway_interface_by_name() usage for https://github.com/opnsense/core/issues/2279 --- dns/dyndns/Makefile | 2 +- dns/dyndns/src/etc/rc.dyndns | 2 +- dns/rfc2136/Makefile | 2 +- dns/rfc2136/src/etc/rc.rfc2136 | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) 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; }