We should write challenge as an int not uint

This commit is contained in:
Nathan Adams
2014-09-10 21:34:23 +02:00
parent 5c4d7fb35e
commit 3c0646367c

View File

@@ -17,7 +17,7 @@ class ServerQuerier:
packet.write(self.MAGIC_PREFIX) packet.write(self.MAGIC_PREFIX)
packet.write(struct.pack("!B", id)) packet.write(struct.pack("!B", id))
packet.write_uint(0) packet.write_uint(0)
packet.write_uint(self.challenge) packet.write_int(self.challenge)
return packet return packet
def _read_packet(self): def _read_packet(self):