Skip to content

Commit

Permalink
use port 6004 for symmetric nat
Browse files Browse the repository at this point in the history
  • Loading branch information
poliva committed Dec 9, 2014
1 parent ab0c4d5 commit 1d6795d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion TODO.txt
Expand Up @@ -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
8 changes: 4 additions & 4 deletions udp/ggpofba.py
Expand Up @@ -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:
Expand Down

0 comments on commit 1d6795d

Please sign in to comment.