File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 11
11
ServerScanRequest ,
12
12
SslyzeOutputAsJson ,
13
13
ServerScanResultAsJson ,
14
+ ServerConnectivityStatusEnum ,
14
15
)
15
16
from sslyze .json .json_output import InvalidServerStringAsJson
16
17
from sslyze .mozilla_tls_profile .mozilla_config_checker import (
@@ -89,7 +90,7 @@ def main() -> None:
89
90
if parsed_command_line .should_print_json_to_console :
90
91
sys .exit (0 )
91
92
92
- if not all_server_scan_results :
93
+ if { res . connectivity_status for res in all_server_scan_results } in [ set (), { ServerConnectivityStatusEnum . ERROR }] :
93
94
# There are no results to present: all supplied server strings were invalid?
94
95
sys .exit (0 )
95
96
Original file line number Diff line number Diff line change @@ -185,11 +185,11 @@ class ServerScanResult:
185
185
server_location : ServerNetworkLocation
186
186
network_configuration : ServerNetworkConfiguration
187
187
188
- # First, SSLyze ensures that it is able to to connect to the server
188
+ # First, SSLyze ensures that it is able to connect to the server
189
189
connectivity_status : ServerConnectivityStatusEnum
190
190
connectivity_error_trace : Optional [TracebackException ]
191
191
connectivity_result : Optional [ServerTlsProbingResult ]
192
192
193
- # If SSLyze was able to connect then it performs the TLS scan
193
+ # Then, if SSLyze was able to connect, it performs the TLS scan
194
194
scan_status : ServerScanStatusEnum
195
195
scan_result : Optional [AllScanCommandsAttempts ] # Set it the scan_status == COMPLETED
You can’t perform that action at this time.
0 commit comments