From 1d6795d11ca6bfd26f28a8a21ce30cfc3c3530cb Mon Sep 17 00:00:00 2001 From: Pau Oliva Date: Tue, 9 Dec 2014 23:49:57 +0100 Subject: [PATCH] use port 6004 for symmetric nat --- TODO.txt | 2 +- udp/ggpofba.py | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/TODO.txt b/TODO.txt index 8c789ee..4ab7611 100644 --- a/TODO.txt +++ b/TODO.txt @@ -3,4 +3,4 @@ * add SSL support on login * make a player profile web front-end with replay id's - setting for public/private replays - - setting to turn off city geo-location (display only country) +* add anti-spam for challenges to avoid challenge-spam diff --git a/udp/ggpofba.py b/udp/ggpofba.py index 4039883..4b1db40 100755 --- a/udp/ggpofba.py +++ b/udp/ggpofba.py @@ -183,11 +183,11 @@ def udp_proxy(args,q): # try to punch the hole using a new ip:port mapping that has never reached another destination n_sockfd = socket.socket( socket.AF_INET, socket.SOCK_DGRAM ) try: - logging.info("Listening on 0.0.0.0:6003/udp") - n_sockfd.bind(("0.0.0.0", 6003)) + logging.info("Listening on 0.0.0.0:6004/udp") + n_sockfd.bind(("0.0.0.0", 6004)) except socket.error: - logging.info("Error listening on 0.0.0.0:6003/udp") - punch_ok, port = puncher(n_sockfd, target[0], 6003) + logging.info("Error listening on 0.0.0.0:6004/udp") + punch_ok, port = puncher(n_sockfd, target[0], 6004) restricted_nat=True if not punch_ok: