Merge pull request #314 from gerandonk/Development

fix send plan radius
This commit is contained in:
iBNu Maksum 2024-10-10 10:48:23 +07:00 committed by GitHub
commit 71d653f3d1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -271,7 +271,8 @@ switch ($action) {
if (!$plan['enabled']) { if (!$plan['enabled']) {
r2(U . "home", 'e', 'Plan is not exists'); r2(U . "home", 'e', 'Plan is not exists');
} }
if ($routes['2'] == 'radius') { if ($plan['is_radius'] == '1') {
$routes['2'] = '0';
$router_name = 'radius'; $router_name = 'radius';
} else { } else {
$router_name = $plan['routers']; $router_name = $plan['routers'];