mirror of
https://github.com/netbirdio/plugins.git
synced 2026-05-22 18:44:07 -07:00
dns/rfc2136: fix previous, mea culpa
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
PLUGIN_NAME= rfc2136
|
||||
PLUGIN_VERSION= 1.9
|
||||
PLUGIN_REVISION= 1
|
||||
PLUGIN_COMMENT= RFC-2136 Support
|
||||
PLUGIN_MAINTAINER= franco@opnsense.org
|
||||
PLUGIN_DEPENDS= bind-tools
|
||||
|
||||
@@ -34,7 +34,7 @@ function rfc2136_configure()
|
||||
return [
|
||||
'bootup' => ['rfc2136_configure_do'],
|
||||
'local' => ['rfc2136_configure_do'],
|
||||
'newwanip_map' => ['rfc2136_configure_map:2'],
|
||||
'newwanip_map' => ['rfc2136_configure_do:2'],
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
@@ -54,7 +54,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
|
||||
write_config();
|
||||
system_cron_configure();
|
||||
if (!empty($a_rfc2136[$_POST['id']]['enable'])) {
|
||||
rfc2136_configure_do(false, '', $a_rfc2136[$_POST['id']]['host'], true);
|
||||
rfc2136_configure_do(false, null, $a_rfc2136[$_POST['id']]['host'], true);
|
||||
}
|
||||
}
|
||||
exit;
|
||||
|
||||
@@ -122,7 +122,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
|
||||
system_cron_configure();
|
||||
|
||||
if (!empty($pconfig['force'])) {
|
||||
rfc2136_configure_do(false, '', $rfc2136['host'], true);
|
||||
rfc2136_configure_do(false, null, $rfc2136['host'], true);
|
||||
}
|
||||
|
||||
header(url_safe('Location: /services_rfc2136.php'));
|
||||
|
||||
Reference in New Issue
Block a user