Fix is_radius

This commit is contained in:
Ibnu Maksum
2023-10-04 16:11:55 +07:00
parent 087c5ab515
commit b2a99def98
7 changed files with 38 additions and 31 deletions

View File

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