BenMenking / routeros-api

Client API for RouterOS/Mikrotik
338 stars 270 forks source link

parseResponse removes wrong entries #27

Closed sanglyb closed 5 years ago

sanglyb commented 7 years ago

Hello, i've found a bug on class. The thing is - if there is a symbol = in response from api - parseResponse removes the line from the right after last symbol =. Let me show you an exaple: We want to get dns logs. The log itself looks like: 16:50:03 dns,packet id:f504 rd:1 tc:0 aa:0 qr:1 ra:1 QUERY 'no error' 16:50:03 dns,packet question: freelancehunt.com:A:IN 16:50:03 dns,packet answer: 16:50:03 dns,packet 16:50:03 dns,packet And after parseResponse [message] of the last 2 entries looks like: <freelancehunt.com:A:119 <freelancehunt.com:A:119 Which is incorrect.

BenMenking commented 7 years ago

Working on duplicating issue

BenMenking commented 5 years ago

Can't duplicate