mirror of
https://github.com/netbirdio/plugins.git
synced 2026-05-22 18:44:07 -07:00
net/relayd: revert a few changes to plugin file
The diff against stable/18.1 reveals a few modifications that make it hard to spot actual changes, revert a few of those since the relayd.inc file is still in place and now clearly indicates what has been dropped and what hasn't.
This commit is contained in:
@@ -37,45 +37,54 @@ function relayd_enabled()
|
||||
|
||||
function relayd_firewall($fw)
|
||||
{
|
||||
if (relayd_enabled()) {
|
||||
$fw->registerAnchor('relayd/*', 'rdr');
|
||||
$fw->registerAnchor('relayd/*', 'fw');
|
||||
if (!relayd_enabled()) {
|
||||
return;
|
||||
}
|
||||
|
||||
$fw->registerAnchor('relayd/*', 'rdr');
|
||||
$fw->registerAnchor('relayd/*', 'fw');
|
||||
}
|
||||
|
||||
function relayd_services()
|
||||
{
|
||||
global $config;
|
||||
|
||||
$services = array();
|
||||
|
||||
if (relayd_enabled()) {
|
||||
$services[] = array(
|
||||
'description' => gettext('Relayd'),
|
||||
'configd' => array(
|
||||
'restart' => array('relayd restart'),
|
||||
'start' => array('relayd start'),
|
||||
'stop' => array('relayd stop'),
|
||||
),
|
||||
'name' => 'relayd',
|
||||
);
|
||||
if (!relayd_enabled()) {
|
||||
return $services;
|
||||
}
|
||||
|
||||
$services[] = array(
|
||||
'description' => gettext('Relayd Load Balancer'),
|
||||
'configd' => array(
|
||||
'restart' => array('relayd restart'),
|
||||
'start' => array('relayd start'),
|
||||
'stop' => array('relayd stop'),
|
||||
),
|
||||
'name' => 'relayd',
|
||||
);
|
||||
|
||||
return $services;
|
||||
}
|
||||
|
||||
function relayd_xmlrpc_sync()
|
||||
{
|
||||
return array(array(
|
||||
'description' => gettext('Relayd'),
|
||||
$result = array();
|
||||
|
||||
$result[] = array(
|
||||
'description' => gettext('Relayd Load Balancer'),
|
||||
'section' => 'OPNsense.relayd',
|
||||
'id' => 'relayd',
|
||||
));
|
||||
/* kept for backwards compat: */
|
||||
'id' => 'lb',
|
||||
);
|
||||
|
||||
return $result;
|
||||
}
|
||||
|
||||
function relayd_syslog()
|
||||
{
|
||||
return array('relayd' => array(
|
||||
'facility' => array('relayd'),
|
||||
'remote' => 'relayd'));
|
||||
$logfacilities = array();
|
||||
|
||||
$logfacilities['relayd'] = array('facility' => array('relayd'), 'remote' => 'relayd');
|
||||
|
||||
return $logfacilities;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user