Changed UDP server commands to match those of the Windows agent.

This commit is contained in:
Ramon Novoa 2014-09-16 12:17:21 +02:00
parent 51cf261d72
commit bf78b13110
1 changed files with 2 additions and 2 deletions

View File

@ -1790,7 +1790,7 @@ sub udp_server ($$) {
log_message ('udp server', 'Received signal from '.$hishost);
kill 'SIGINT' , $parent_pid;
}
elsif ($newmsg =~ /PROCESS START (.*)/){
elsif ($newmsg =~ /START PROCESS (.*)/){
my $process_name = $1;
$process_name =~ s/^\s*//g;
$process_name =~ s/\s*$//g;
@ -1804,7 +1804,7 @@ sub udp_server ($$) {
log_message ('udp server', "Attempt to start unknown process $process_name from $hishost");
}
}
elsif ($newmsg =~ /PROCESS STOP (.*)/){
elsif ($newmsg =~ /STOP PROCESS (.*)/){
my $process_name = $1;
$process_name =~ s/^\s*//g;
$process_name =~ s/\s*$//g;