Browse Source

adding #25

master
Björn 4 years ago
parent
commit
93556a99a7
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      app/Commands/Fail2banManageCommand.php

+ 4
- 0
app/Commands/Fail2banManageCommand.php View File

@ -92,8 +92,12 @@ class Fail2banManageCommand extends Command
$checkbox = new CheckboxItem($name, function(CliMenu $menu) use ($name) {
if ($this->configuration[$name] === true) {
$this->call('fail2ban:disable', [ 'configuration' => $name ]);
$menu->redraw();
$menu->confirm($name.' is disabled!')->display('OK!');
} else {
$this->call('fail2ban:enable', [ 'configuration' => $name ]);
$menu->redraw();
$menu->confirm($name.' is enabled!')->display('OK!');
}
// getting new value


Loading…
Cancel
Save