From 3fc8fcbd3fa1658f3322925a8e33fafb8e7c0b16 Mon Sep 17 00:00:00 2001 From: Neale Pickett Date: Thu, 20 Aug 2009 12:57:06 -0600 Subject: [PATCH] Change port to 6667, bind to all IPs --- pointscli.py | 2 +- pointsd.py | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/pointscli.py b/pointscli.py index 4918a33..2e26d3a 100644 --- a/pointscli.py +++ b/pointscli.py @@ -20,7 +20,7 @@ def main(): req = points.encode_request(now, cat, team, score) s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) while True: - s.sendto(req, (opts.host, 9999)) + s.sendto(req, (opts.host, 6667)) r, w, x = select.select([s], [], [], 0.2) if r: b = s.recv(500) diff --git a/pointsd.py b/pointsd.py index 2449e6f..49ad8a8 100755 --- a/pointsd.py +++ b/pointsd.py @@ -39,6 +39,5 @@ class MyHandler(socketserver.BaseRequestHandler): if __name__ == "__main__": - HOST, PORT = "localhost", 9999 - server = socketserver.UDPServer((HOST, PORT), MyHandler) + server = socketserver.UDPServer(('', 6667), MyHandler) server.serve_forever()