mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-09-06 10:18:20 +00:00
Do not bother with rdp if ssh up
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user