From b7b23fc39a095885ea575663ee4382b52d4d6e81 Mon Sep 17 00:00:00 2001 From: Ibnu Maksum Date: Fri, 9 Aug 2024 16:29:26 +0700 Subject: [PATCH] disconnect customer when moving to expired --- system/devices/MikrotikPppoe.php | 4 ++++ version.json | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/system/devices/MikrotikPppoe.php b/system/devices/MikrotikPppoe.php index 04f12c8d..3d2caa23 100644 --- a/system/devices/MikrotikPppoe.php +++ b/system/devices/MikrotikPppoe.php @@ -75,6 +75,10 @@ class MikrotikPppoe $p = ORM::for_table("tbl_plans")->find_one($plan['plan_expired']); if($p){ $this->add_customer($customer, $p); + $this->removePpoeActive($client, $customer['username']); + if (!empty($customer['pppoe_username'])) { + $this->removePpoeActive($client, $customer['pppoe_username']); + } return; } } diff --git a/version.json b/version.json index 99ed93d9..56b6712c 100644 --- a/version.json +++ b/version.json @@ -1,3 +1,3 @@ { - "version": "2024.8.9" + "version": "2024.8.9.1" } \ No newline at end of file