From 2ad2cc5d7e1e1e619fa6a4f16b51674c91826132 Mon Sep 17 00:00:00 2001 From: itscurt Date: Tue, 27 Sep 2016 22:10:10 -0700 Subject: [PATCH] HTTPS by default, invert secure arg. Sets default schema to HTTPS invert --secure param and helphint to --insecure --- speedtest_cli.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/speedtest_cli.py b/speedtest_cli.py index d93d5c3..211d18c 100755 --- a/speedtest_cli.py +++ b/speedtest_cli.py @@ -31,7 +31,7 @@ __version__ = '0.3.4' user_agent = None source = None shutdown_event = None -scheme = 'http' +scheme = 'https' # Used for bound_interface @@ -587,8 +587,8 @@ def speedtest(): parser.add_argument('--source', help='Source IP address to bind to') parser.add_argument('--timeout', default=10, type=int, help='HTTP timeout in seconds. Default 10') - parser.add_argument('--secure', action='store_true', - help='Use HTTPS instead of HTTP when communicating ' + parser.add_argument('--insecure', action='store_true', + help='Use HTTP instead of HTTPS when communicating ' 'with speedtest.net operated servers') parser.add_argument('--version', action='store_true', help='Show the version number and exit') @@ -614,8 +614,8 @@ def speedtest(): source = args.source socket.socket = bound_socket - if args.secure: - scheme = 'https' + if args.insecure: + scheme = 'http' if not args.simple: print_('Retrieving speedtest.net configuration...')