From 59bc70465d706aae380682c94cac006d80646b90 Mon Sep 17 00:00:00 2001 From: Ivan Alejandro Date: Fri, 24 Jul 2015 16:22:26 -0300 Subject: [feat] enable '--danger' for stable versions Is useful for new providers to be able to use the stable Bitmask version with this flag to be able to use custom certificates. - Resolves: #7250 --- src/leap/bitmask/util/leap_argparse.py | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) (limited to 'src') diff --git a/src/leap/bitmask/util/leap_argparse.py b/src/leap/bitmask/util/leap_argparse.py index 70feb61c..bfff503e 100644 --- a/src/leap/bitmask/util/leap_argparse.py +++ b/src/leap/bitmask/util/leap_argparse.py @@ -19,8 +19,6 @@ Parses the command line arguments passed to the application. """ import argparse -from leap.bitmask import IS_RELEASE_VERSION - def build_parser(): """ @@ -93,11 +91,10 @@ def build_parser(): # '--to-mbox flag to import to folders other ' # 'than INBOX. Use with --acct') - if not IS_RELEASE_VERSION: - help_text = ("Bypasses the certificate check during provider " - "bootstraping, for debugging development servers. " - "Use at your own risk!") - parser.add_argument('--danger', action="store_true", help=help_text) + help_text = ("INSECURE: Bypasses the certificate check during provider " + "bootstraping, for debugging development servers. " + "USE AT YOUR OWN RISK!") + parser.add_argument('--danger', action="store_true", help=help_text) # optional cert file used to check domains with self signed certs. parser.add_argument('--ca-cert-file', metavar="/path/to/cacert.pem", @@ -132,8 +129,4 @@ def get_options(): parser = build_parser() opts, unknown = parser.parse_known_args() - # we add this option manually since it's not defined for 'release version' - if IS_RELEASE_VERSION: - opts.danger = False - return opts -- cgit v1.2.3