Skip to content
Snippets Groups Projects
Commit e212ab63 authored by Carsten Rosenberg's avatar Carsten Rosenberg
Browse files

[Minor] Add SSL_VERIFY_MODE to silent CentOS7 warnings

parent 6763b4b4
No related branches found
No related tags found
No related merge requests found
......@@ -242,12 +242,13 @@ sub scan_port {
($port, $prot) = get_port_proto($port);
$sock = $sock->new(PeerAddr => $host,
PeerPort => $port,
Timeout => $TIMEOUT);
Timeout => $TIMEOUT,
SSL_verify_mode => SSL_VERIFY_PEER);
$ret = eval {
local $SIG{ALRM} = sub {
local $SIG{ALRM} = sub {
$DEBUG && write_log("Timeout");
die "Timeout\n";
die "Timeout\n";
};
alarm $TIMEOUT;
if ($sock){
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment