From d8c2c1249e2845be0f74776a3100a9e52d7ab421 Mon Sep 17 00:00:00 2001 From: Brian Warner Date: Mon, 20 Jun 2016 16:20:21 -0700 Subject: [PATCH] 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). --- src/wormhole/server/cli.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/wormhole/server/cli.py b/src/wormhole/server/cli.py index cb8538a..0992e87 100644 --- a/src/wormhole/server/cli.py +++ b/src/wormhole/server/cli.py @@ -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(