Commit f32aad39 authored by Jim Fulton's avatar Jim Fulton

0 is a valid port offset.

parent 6d93a7b7
......@@ -308,9 +308,7 @@ try:
FTP_PORT=v
elif o=='-P':
if v:
try:
v=string.atoi(v)
if v < 1: raise 'Invalid port', v
try: v=string.atoi(v)
except: raise 'Invalid port', v
FTP_PORT=v+21
HTTP_PORT=v+80
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment