Removed pesky debug thing.
This commit is contained in:
parent
bdd45aaa7e
commit
097eba7b03
@ -15,7 +15,6 @@ def poll_ss13_server(server, timeout=30):
|
|||||||
# Thanks to /u/headswe for showing how to poll servers.
|
# Thanks to /u/headswe for showing how to poll servers.
|
||||||
# Source: http://www.reddit.com/r/SS13/comments/31b5im/a_bunch_of_graphs_for_all_servers/cq11nld
|
# Source: http://www.reddit.com/r/SS13/comments/31b5im/a_bunch_of_graphs_for_all_servers/cq11nld
|
||||||
addr = (server.host, server.port)
|
addr = (server.host, server.port)
|
||||||
print 'polling:', server
|
|
||||||
query = '\x00\x83{0}\x00\x00\x00\x00\x00?players\x00'.format(
|
query = '\x00\x83{0}\x00\x00\x00\x00\x00?players\x00'.format(
|
||||||
struct.pack('>H', 14) # 14 = 6 null bytes + len(?players)
|
struct.pack('>H', 14) # 14 = 6 null bytes + len(?players)
|
||||||
)
|
)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user