From d323a9d58235834dc37fe3d73cfc80dccd6acef5 Mon Sep 17 00:00:00 2001 From: Ibnu Maksum Date: Wed, 10 Jul 2024 14:58:30 +0700 Subject: [PATCH] pppoe support --- radius.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/radius.php b/radius.php index 585c1576..7c9c113e 100644 --- a/radius.php +++ b/radius.php @@ -174,6 +174,10 @@ function process_radiust_rest($tur, $code) $attrs['reply:expiration'] = date('d M Y H:i:s', $timeexp); $attrs['reply:WISPr-Session-Terminate-Time'] = date('Y-m-d', $timeexp) . 'T' . date('H:i:sP', $timeexp); + if ($plan['type'] == 'PPPOE') { + $attrs['reply:Framed-Pool'] = $plan['pool']; + } + if ($plan['typebp'] == "Limited") { if ($plan['limit_type'] == "Time_Limit") { if ($plan['time_unit'] == 'Hrs')