mirror of
https://github.com/Dinnerbone/mcstatus.git
synced 2026-04-06 12:01:24 +08:00
Fix to allow ports > 32767
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user