server/cli.py: fix port numbers

There was some vestigal server-cli code (leftover in the client-side
wormhole.cli.cli_args) that used port 3000/3001, and it accidentally got
used for the new Click-based parser, rather than the actual server-cli
code (in wormhole.server.cli_args) that uses port 4000/4001. This
changes the port numbers to match (everything uses 4000/4001 these days,
to avoid confusing interactions with the old 0.7.6 server that might
still be listening on the old ports).
This commit is contained in:
Brian Warner 2016-06-20 16:20:21 -07:00
parent 940aec7570
commit d8c2c1249e

View File

@ -24,11 +24,11 @@ def server(ctx):
@server.command()
@click.option(
"--rendezvous", default="tcp:3000", metavar="tcp:PORT",
"--rendezvous", default="tcp:4000", metavar="tcp:PORT",
help="endpoint specification for the rendezvous port",
)
@click.option(
"--transit", default="tcp:3001", metavar="tcp:PORT",
"--transit", default="tcp:4001", metavar="tcp:PORT",
help="endpoint specification for the transit-relay port",
)
@click.option(
@ -69,11 +69,11 @@ def start(cfg, signal_error, no_daemon, blur_usage, advertise_version, transit,
# 'start' options...
@server.command()
@click.option(
"--rendezvous", default="tcp:3000", metavar="tcp:PORT",
"--rendezvous", default="tcp:4000", metavar="tcp:PORT",
help="endpoint specification for the rendezvous port",
)
@click.option(
"--transit", default="tcp:3001", metavar="tcp:PORT",
"--transit", default="tcp:4001", metavar="tcp:PORT",
help="endpoint specification for the transit-relay port",
)
@click.option(