routeros-api
routeros-api copied to clipboard
three bugs and their fixes in comm() function
first one:
$this->write($com, ($count===0));
second (query commands need to be send with question mark)
case "?":
$el = "?$k=$v";
third (hang forever):
$last = ($i === $count - 1);
$this->write($el, $last);
$i++;
Any context here?..
What regards to
case "?": $el = "?$k=$v";
It's switch ($k[0]), so your result will be something like ??key=val
@volkirik thank you for the report! Can you provide any testing scenarios that can be run to duplicate the three issues?