change variable user to name to check pppoe online customer
This commit is contained in:
parent
05eab22062
commit
5b51af1b6e
@ -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');
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user