allow radius pool

This commit is contained in:
Ibnu Maksum
2023-10-04 11:25:58 +07:00
parent ce01771800
commit efc0ba93b6
3 changed files with 10 additions and 2 deletions

View File

@ -100,7 +100,7 @@ switch ($action) {
}
$mikrotik = Mikrotik::info($routers);
if ($msg == '') {
if (!$config['radius_enable']) {
if (!$config['radius_enable'] && $routers != 'radius') {
$client = Mikrotik::getClient($mikrotik['ip_address'], $mikrotik['username'], $mikrotik['password']);
Mikrotik::addPool($client, $name, $ip_address);
}