diff --git a/bot.py b/bot.py index c34b90a..97bcf7c 100644 --- a/bot.py +++ b/bot.py @@ -192,10 +192,10 @@ async def ssl(ctx, domain: str): tlsa_process = subprocess.Popen(" ".join(tlsa_command), shell=True, stdout=subprocess.PIPE) tlsa_output, _ = tlsa_process.communicate() - tlsa_server = binascii.hexlify(tlsa_output).decode("utf-8") + tlsa_server = "3 1 1 " + binascii.hexlify(tlsa_output).decode("utf-8") - message = message + "\n## TLSA Record from webserver:\n`3 1 1 " + tlsa_server + "`\n" + message = message + "\n## TLSA Record from webserver:\n`" + tlsa_server + "`\n" # Check for TLSA record response = resolver.resolve("_443._tcp."+domain, "TLSA")