routeros-api icon indicating copy to clipboard operation
routeros-api copied to clipboard

three bugs and their fixes in comm() function

Open volkirik opened this issue 7 months ago • 2 comments

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

volkirik avatar Jan 01 '24 17:01 volkirik

Any context here?..

What regards to

case "?": $el = "?$k=$v";

It's switch ($k[0]), so your result will be something like ??key=val

Chupaka avatar Jan 02 '24 14:01 Chupaka

@volkirik thank you for the report! Can you provide any testing scenarios that can be run to duplicate the three issues?

BenMenking avatar Jan 02 '24 14:01 BenMenking