Merge branch 'ent-5321-9399-error-agente-ssl-proxy-mode' into 'develop'
Ent 5321 9399 error agente ssl proxy mode See merge request artica/pandorafms!4124
This commit is contained in:
commit
9d6d84ab6b
|
@ -2331,9 +2331,6 @@ sub launch_tentacle_proxy () {
|
|||
|
||||
#Execute tentacle server as a daemon
|
||||
my $new_process = "tentacle_server -a ".$Conf{'proxy_address'}." -p ".$Conf{'proxy_port'}." -b ".$Conf{'server_ip'}." -g ".$Conf{'server_port'}." -c ".$Conf{'proxy_max_connection'}." -t ".$Conf{'proxy_timeout'};
|
||||
|
||||
$new_process .= ' -C' if ($Conf{'server_ssl'} eq '1');
|
||||
|
||||
log_message ('setup', 'Proxy mode enabled');
|
||||
exec ($new_process);
|
||||
}
|
||||
|
|
|
@ -423,7 +423,7 @@ Pandora_Windows_Service::killTentacleProxy() {
|
|||
|
||||
int
|
||||
Pandora_Windows_Service::launchTentacleProxy() {
|
||||
string server_ip, server_port, proxy_max_connections, proxy_timeout, server_ssl;
|
||||
string server_ip, server_port, proxy_max_connections, proxy_timeout;
|
||||
string proxy_cmd, proxy_address, proxy_port;
|
||||
PROCESS_INFORMATION pi;
|
||||
STARTUPINFO si;
|
||||
|
@ -451,15 +451,6 @@ Pandora_Windows_Service::launchTentacleProxy() {
|
|||
server_port = "41121";
|
||||
}
|
||||
|
||||
server_ssl = conf->getValue("server_ssl");
|
||||
|
||||
if (server_ssl == "1") {
|
||||
proxy_cmd = "tentacle_server.exe -C";
|
||||
}
|
||||
else {
|
||||
proxy_cmd = "tentacle_server.exe";
|
||||
}
|
||||
|
||||
// Proxy address.
|
||||
proxy_address = conf->getValue("proxy_address");
|
||||
if (proxy_address == "") {
|
||||
|
@ -472,7 +463,7 @@ Pandora_Windows_Service::launchTentacleProxy() {
|
|||
proxy_port = "41121";
|
||||
}
|
||||
|
||||
proxy_cmd += " -b " + server_ip + " -g " + server_port + " -c " + proxy_max_connections + " -t " + proxy_timeout + " -a " + proxy_address + " -p " + proxy_port;
|
||||
proxy_cmd = "tentacle_server.exe -b " + server_ip + " -g " + server_port + " -c " + proxy_max_connections + " -t " + proxy_timeout + " -a " + proxy_address + " -p " + proxy_port;
|
||||
|
||||
ZeroMemory (&si, sizeof (si));
|
||||
ZeroMemory (&pi, sizeof (pi));
|
||||
|
|
Loading…
Reference in New Issue