Dinnerbone / mcstatus

A Python class for checking the status of an enabled Minecraft server
http://dinnerbone.com/minecraft/tools/status/
1.11k stars 146 forks source link

fix motd unicode parse error. #192

Closed b23r0 closed 2 years ago

b23r0 commented 2 years ago

If motd set to unicode in server.properties , using other parameters of read_ascii() may be in the wrong order. (0x00 not unicode end)

1642402315(1)

Since the minecraft protocol does not support unicode, the hostname is still not resolved correctly. However, this will avoid other parameter parsing errors.