2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-09-06 02:08:25 +00:00

Do not bother with rdp if ssh up

This commit is contained in:
Jarrod Johnson
2018-08-24 09:15:20 -04:00
parent dad3f26b9c
commit 457f997ea1

View File

@@ -721,7 +721,14 @@ sub process_request_nmap {
if ($1 eq "3001" and defined($chainhash{$currnode}->[0]->{currstate}) and $chainhash{$currnode}->[0]->{currstate} =~ /^install/) {
$installquerypossible = 1; #It is possible to actually query node
} elsif ($1 ne "3001") {
if ($1 == 3389 and $states{'sshd'}) {
continue;
}
$states{ $portservices{$1} } = 1;
if ($1 == 22 and $states{'rdp'}) {
delete $states{'rdp'};
continue;
}
}
}
}