Commit 1a30913f authored by Franco Fichtner's avatar Franco Fichtner

openvpn: tweak previous

(cherry picked from commit e1749af0)
parent 6cc5501e
...@@ -458,7 +458,6 @@ function openvpn_client_export_config($srvid, $usrid, $crtid, $useaddr, $verifys ...@@ -458,7 +458,6 @@ function openvpn_client_export_config($srvid, $usrid, $crtid, $useaddr, $verifys
function openvpn_client_export_installer($srvid, $usrid, $crtid, $useaddr, $verifyservercn, $randomlocalport, $usetoken, $outpass, $proxy, $openvpnmanager, $advancedoptions, $openvpn_version = "x86-xp") function openvpn_client_export_installer($srvid, $usrid, $crtid, $useaddr, $verifyservercn, $randomlocalport, $usetoken, $outpass, $proxy, $openvpnmanager, $advancedoptions, $openvpn_version = "x86-xp")
{ {
global $config, $input_errors, $current_openvpn_version, $current_openvpn_version_rev; global $config, $input_errors, $current_openvpn_version, $current_openvpn_version_rev;
$uname_p = trim(exec("uname -p"));
switch ($openvpn_version) { switch ($openvpn_version) {
case "x86-xp": case "x86-xp":
...@@ -580,7 +579,6 @@ RunProgram="openvpn-postinstall.exe" ...@@ -580,7 +579,6 @@ RunProgram="openvpn-postinstall.exe"
function viscosity_openvpn_client_config_exporter($srvid, $usrid, $crtid, $useaddr, $verifyservercn, $randomlocalport, $usetoken, $outpass, $proxy, $openvpnmanager, $advancedoptions) function viscosity_openvpn_client_config_exporter($srvid, $usrid, $crtid, $useaddr, $verifyservercn, $randomlocalport, $usetoken, $outpass, $proxy, $openvpnmanager, $advancedoptions)
{ {
global $config; global $config;
$uname_p = trim(exec("uname -p"));
$uniq = uniqid(); $uniq = uniqid();
$tempdir = "/tmp/openvpn-export-{$uniq}"; $tempdir = "/tmp/openvpn-export-{$uniq}";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment