fix(mikrotik): set pool $poolId always empty

This commit is contained in:
Akhmad Salafudin
2024-01-18 01:55:23 +07:00
committed by GitHub
parent 2d095aef08
commit 2b8ca5fd85

View File

@ -427,7 +427,7 @@ class Mikrotik
'/ip pool print .proplist=.id',
RouterOS\Query::where('name', $name)
);
$poolID = $client->sendSync($printRequest)->getProperty('id');
$poolID = $client->sendSync($printRequest)->getProperty('.id');
if (empty($poolID)) {
self::addPool($client, $name, $ip_address);