mirror of
https://github.com/netbirdio/plugins.git
synced 2026-05-22 18:44:07 -07:00
dyndns, rfc2136, refactor lookup_gateway_interface_by_name() usage for https://github.com/opnsense/core/issues/2279
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
|
||||
@@ -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,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
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user