Closed zer0grand closed 3 years ago
Looks like the response was either too short or got split into several packets. The code doesn't seem to handle the case where the stream is split into less than 12 bytes, which I suppose is quite possible though unlikely.
This condition should be changed to while (data.length >= 12)
https://github.com/pushrax/node-rcon/blob/9c05be51b0ee48d6877cf7b52e8bd6edf0a3f555/node-rcon.js#L139-L144
Should be fixed in 5155353f3c359af80ddf2ed55edebebb6137b0b1, which I will release to npm today.
Should be fixed in 5155353, which I will release to npm today.
Still not working
You'll need to be more specific. What problem are you running into? Is it just the deprecation notice you mentioned in #36?
You'll need to be more specific. What problem are you running into? Is it just the deprecation notice you mentioned in #36?
Yeah, That fixed Buffer issue
The default example doesn't work when I use my own server credentials...