Agent update
This commit is contained in:
parent
c195c0930b
commit
cc5f7bb90c
16 changed files with 474 additions and 85 deletions
|
|
@ -749,7 +749,8 @@ sub is_port_listening_without_decrypt
|
|||
my ($server_ip, $port) = @_;
|
||||
return 0 unless(defined($port) && $port =~ /^[0-9]+$/ && $port > 0 && $port <= 65535);
|
||||
my $out = `netstat -an 2>/dev/null`;
|
||||
return 1 if(defined($out) && $out =~ /[:.]$port\s+.*(LISTENING|UDP)/i);
|
||||
return 1 if(defined($out) && $out =~ /^\s*TCP\s+\S+[:.]$port\s+\S+\s+LISTENING/im);
|
||||
return 1 if(defined($out) && $out =~ /^\s*UDP\s+\S+[:.]$port\s+/im);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
@ -797,7 +798,8 @@ sub server_status_without_decrypt
|
|||
}
|
||||
elsif($game_port_listening)
|
||||
{
|
||||
$status = "UNRESPONSIVE";
|
||||
$status = "ONLINE";
|
||||
$ready = 1;
|
||||
$last_error = "Game port is listening but the managed screen session is not running.";
|
||||
}
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue