def test_site(url: str, previous_results: dict, remote_host: str = None) -> Dict[str, Dict[str, Union[str, bytes]]]:
# test first mx
try:
hostname = previous_results['mx_records'][0][1]
except (KeyError, IndexError):
return {
'jsonresult': {
'mime_type': 'application/json',
'data': b'',
},
}
jsonresult = run_testssl(hostname, True, remote_host)
return {
'jsonresult': {
'mime_type': 'application/json',
'data': jsonresult,
},
}
评论列表
文章目录