cast port to integer

This commit is contained in:
Jan-Piet Mens 2020-03-07 20:43:40 +01:00
parent c1fda041f3
commit 7b3c440303

View File

@ -200,7 +200,7 @@ def show_result(user_args):
try: try:
cert = get_cert(host, port, user_args) cert = get_cert(host, port, user_args)
context[host] = get_cert_info(host, cert) context[host] = get_cert_info(host, cert)
context[host]['tcp_port'] = port context[host]['tcp_port'] = int(port)
# Analyze the certificate if enabled # Analyze the certificate if enabled
if user_args.analyze: if user_args.analyze: