mirror of
https://github.com/netbirdio/plugins.git
synced 2026-05-22 18:44:07 -07:00
dns/rfc2136: simplify for non-gwgroup reality
This commit is contained in:
@@ -34,18 +34,4 @@ require_once("filter.inc");
|
||||
require_once("services.inc");
|
||||
require_once("plugins.inc.d/rfc2136.inc");
|
||||
|
||||
if (isset($argv[1])) {
|
||||
$argument = trim($argv[1], " \n");
|
||||
} else {
|
||||
$argument = null;
|
||||
}
|
||||
|
||||
if (empty($argument)) {
|
||||
rfc2136_configure_do(true);
|
||||
} else {
|
||||
$interface = (new \OPNsense\Routing\Gateways(legacy_interfaces_details()))->getInterfaceName($argument);
|
||||
if (empty($interface)) {
|
||||
$interface = $argument;
|
||||
}
|
||||
rfc2136_configure_do(true, $interface);
|
||||
}
|
||||
rfc2136_configure_do(true);
|
||||
|
||||
@@ -1,6 +0,0 @@
|
||||
[reload]
|
||||
command:/usr/local/etc/rc.rfc2136
|
||||
description:RFC 2136 Update
|
||||
parameters:%s
|
||||
type:script
|
||||
message:updating rfc2136 %s
|
||||
Reference in New Issue
Block a user