Fix to allow ports > 32767

This commit is contained in:
PangeaCake
2015-01-26 16:15:27 -08:00
parent 2a29e13975
commit fff9b05389

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)
@@ -143,4 +143,4 @@ class PingResponse:
else:
self.favicon = None
self.latency = None
self.latency = None