dyndns, rfc2136, refactor lookup_gateway_interface_by_name() usage for https://github.com/opnsense/core/issues/2279

This commit is contained in:
Ad Schellevis
2019-04-12 15:51:52 +02:00
parent 63c614f167
commit 2d750f903c
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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;
}
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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;
}