diff options
author | Ivan Alejandro <ivanalejandro0@gmail.com> | 2015-07-24 16:22:26 -0300 |
---|---|---|
committer | Ivan Alejandro <ivanalejandro0@gmail.com> | 2015-07-24 16:22:26 -0300 |
commit | 59bc70465d706aae380682c94cac006d80646b90 (patch) | |
tree | 8cde5cf177fea2cec97a32a595ce8f9b6f59053a /src/leap/bitmask | |
parent | 6b2d0f7424f08423bcdbb99002d8eacbc460fc68 (diff) |
[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
Diffstat (limited to 'src/leap/bitmask')
-rw-r--r-- | src/leap/bitmask/util/leap_argparse.py | 15 |
1 files changed, 4 insertions, 11 deletions
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 |