From 5b51af1b6e658438659fbaf311d466d1429aa72a Mon Sep 17 00:00:00 2001 From: Ibnu Maksum Date: Tue, 8 Oct 2024 09:50:23 +0700 Subject: [PATCH] change variable user to name to check pppoe online customer --- system/devices/MikrotikPppoe.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/devices/MikrotikPppoe.php b/system/devices/MikrotikPppoe.php index ef407781..6ad96475 100644 --- a/system/devices/MikrotikPppoe.php +++ b/system/devices/MikrotikPppoe.php @@ -297,7 +297,7 @@ class MikrotikPppoe $client = $this->getClient($mikrotik['ip_address'], $mikrotik['username'], $mikrotik['password']); $printRequest = new RouterOS\Request( '/ppp active print', - RouterOS\Query::where('user', $customer['username']) + RouterOS\Query::where('name', $customer['username']) ); return $client->sendSync($printRequest)->getProperty('.id'); }