Vlag voor accepteren certificaat
This commit is contained in:
@@ -11,6 +11,7 @@ def run(args):
|
||||
try:
|
||||
lmwsip = LmwSip(host=args.host, port=args.port,
|
||||
ssl=not args.unencrypted,
|
||||
check_ssl=not args.acceptssl,
|
||||
cleartelnet=args.cleartelnet)
|
||||
except Exception as e:
|
||||
print("Connect to lmw failed: %s" % e)
|
||||
@@ -36,6 +37,8 @@ def main():
|
||||
parser = argparse.ArgumentParser(description="Run a sip file.")
|
||||
parser.add_argument("-u", "--unencrypted", action="store_true",
|
||||
help="Run a sip connection without ssl")
|
||||
parser.add_argument("-a", "--acceptssl", action="store_true",
|
||||
help="Accept ssl certificate")
|
||||
parser.add_argument("-c", "--cleartelnet", action="store_true",
|
||||
help="Clear telnet protocol in tcp session")
|
||||
parser.add_argument("-H", "--host", action='store',
|
||||
|
Reference in New Issue
Block a user