Os detection fix

This commit is contained in:
Calvo 2023-05-26 13:17:40 +02:00
parent a32d9351df
commit 6fc9b71a04
1 changed files with 12 additions and 12 deletions

View File

@ -6689,40 +6689,40 @@ sub pandora_get_os ($$) {
return 10; return 10;
} }
if ($os =~ m/Windows.*?(?=\(\d+%\))/i) { if ($os =~ m/Windows/i) {
return 9; return 9;
} }
if ($os =~ m/Cisco.*?(?=\(\d+%\))/i) { if ($os =~ m/Cisco/i) {
return 7; return 7;
} }
if ($os =~ m/SunOS.*?(?=\(\d+%\))/i || $os =~ m/Solaris.*?(?=\(\d+%\))/i) { if ($os =~ m/SunOS/i || $os =~ m/Solaris/i) {
return 2; return 2;
} }
if ($os =~ m/AIX.*?(?=\(\d+%\))/i) { if ($os =~ m/AIX/i) {
return 3; return 3;
} }
if ($os =~ m/HP\-UX.*?(?=\(\d+%\))/i) { if ($os =~ m/HP\-UX/i) {
return 5; return 5;
} }
if ($os =~ m/Apple.*?(?=\(\d+%\))/i || $os =~ m/Darwin.*?(?=\(\d+%\))/i) { if ($os =~ m/Apple/i || $os =~ m/Darwin/i) {
return 8; return 8;
} }
if ($os =~ m/Linux.*?(?=\(\d+%\))/i) { if ($os =~ m/Linux/i) {
return 1; return 1;
} }
if ($os =~ m/Enterasys.*?(?=\(\d+%\))/i || $os =~ m/3com.*?(?=\(\d+%\))/i) { if ($os =~ m/Enterasys/i || $os =~ m/3com/i) {
return 11; return 11;
} }
if ($os =~ m/Octopods.*?(?=\(\d+%\))/i) { if ($os =~ m/Octopods/i) {
return 13; return 13;
} }
if ($os =~ m/embedded.*?(?=\(\d+%\))/i) { if ($os =~ m/embedded/i) {
return 14; return 14;
} }
if ($os =~ m/android.*?(?=\(\d+%\))/i) { if ($os =~ m/android/i) {
return 15; return 15;
} }
if ($os =~ m/BSD.*?(?=\(\d+%\))/i) { if ($os =~ m/BSD/i) {
return 4; return 4;
} }