Skip to content
Snippets Groups Projects
Commit 38a4b635 authored by Roman Haefeli's avatar Roman Haefeli
Browse files

rename udp-dyn-proxy -> tpf-udp-proxy.py

parent 000ac748
No related branches found
No related tags found
No related merge requests found
......@@ -27,12 +27,15 @@ import socket, sys
UDP_IP = "0.0.0.0"
linklookup = dict()
tokenlookup = dict()
DEFAULT_UDP_PORT = 4460
try:
UDP_PORT = int(sys.argv[1])
except ValueError:
print 'Specified port is not a number'
sys.exit(1)
except IndexError:
UDP_PORT = DEFAULT_UDP_PORT
# haben wir einen gueltigen Port
if not isinstance( UDP_PORT, int ) or not 1024 <= UDP_PORT <= 65535:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment