Merge pull request #29 from pangeacake/patch-1

Fix to allow ports > 32767
This commit is contained in:
Dinner Bone
2017-04-01 17:18:29 +02:00
committed by GitHub

View File

@@ -21,7 +21,7 @@ class ServerPinger:
packet.write_varint(0)
packet.write_varint(self.version)
packet.write_utf(self.host)
packet.write_short(self.port)
packet.write_ushort(self.port)
packet.write_varint(1) # Intention to query status
self.connection.write_buffer(packet)