Browse Source

Fix TypeError in sendto call

pull/4/head
Alibek Omarov (a1batross) 8 years ago
parent
commit
d99acdb25b
  1. 4
      pymaster.py

4
pymaster.py

@ -111,8 +111,10 @@ class PyMaster:
continue continue
if( nat ): if( nat ):
reply = '\xff\xff\xff\xffc {0}:{1}'.format( addr[0], addr[1] )
data = reply.encode( 'latin_1' )
# Tell server to send info reply # Tell server to send info reply
self.sock.sendto( '\xff\xff\xff\xffc {0}:{1}'.format( addr[0], addr[1] ), i.addr ) self.sock.sendto( data, i.addr )
# Use pregenerated address string # Use pregenerated address string
packet += i.queryAddr packet += i.queryAddr

Loading…
Cancel
Save