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

Write the port as an unsigned short #44

Closed holic closed 8 years ago

holic commented 8 years ago

According to the protocol, the port should be an unsigned short. I discovered this while trying to ping a server with port 44444, which raised the following exception:

error: 'h' format requires -32768 <= number <= 32767
holic commented 8 years ago

Ah, I see this was fixed in https://github.com/Dinnerbone/mcstatus/pull/29. Closing as a duplicate.