Merge pull request #99 from axmad386/patch-1

fix(mikrotik): set pool $poolId always empty
This commit is contained in:
iBNu Maksum 2024-01-18 12:00:51 +07:00 committed by GitHub
commit 96945ab813
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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);