Update parsing of NordVPN countries, fixes #1634

This commit is contained in:
billz 2024-08-10 19:25:54 +02:00
parent 90d63a679d
commit 484820f324

View file

@ -240,11 +240,9 @@ function getCountries($id, $binPath)
}
break;
case 3: // nordvpn
$output = stripArtifacts($output,'\s');
$arrTmp = explode(",", $output[0]);
$countries = array_combine($arrTmp, $arrTmp);
foreach ($countries as $key => $value) {
$countries[$key] = str_replace("_", " ", $value);
foreach ($output as $key => $value) {
$countries[$value] = str_replace("_", " ", $value);
}
break;
default: