mirror of
https://github.com/RaspAP/raspap-webgui.git
synced 2024-11-21 23:20:22 +00:00
Update parsing of NordVPN countries, fixes #1634
This commit is contained in:
parent
90d63a679d
commit
484820f324
1 changed files with 3 additions and 5 deletions
|
@ -240,11 +240,9 @@ function getCountries($id, $binPath)
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 3: // nordvpn
|
case 3: // nordvpn
|
||||||
$output = stripArtifacts($output,'\s');
|
|
||||||
$arrTmp = explode(",", $output[0]);
|
$arrTmp = explode(",", $output[0]);
|
||||||
$countries = array_combine($arrTmp, $arrTmp);
|
foreach ($output as $key => $value) {
|
||||||
foreach ($countries as $key => $value) {
|
$countries[$value] = str_replace("_", " ", $value);
|
||||||
$countries[$key] = str_replace("_", " ", $value);
|
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
|
Loading…
Reference in a new issue