2011-07-29 Dario Rodriguez <dario.rodriguez@artica.es>

* bin/PandoraAgent.exe: Compiled new exe with a bug fixed.
	* pandora_windows_service.cc: Fixed a bug related to proxy mode.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4650 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
darode 2011-07-29 09:19:50 +00:00
parent 677993a8c0
commit be63cf6054
3 changed files with 9 additions and 4 deletions

View File

@ -1,3 +1,8 @@
2011-07-29 Dario Rodriguez <dario.rodriguez@artica.es>
* bin/PandoraAgent.exe: Compiled new exe with a bug fixed.
* pandora_windows_service.cc: Fixed a bug related to proxy mode.
2011-07-28 Dario Rodriguez <dario.rodriguez@artica.es>
* pandora_windows_service.h, pandora_windows_service.cc: Added proxy

View File

@ -336,17 +336,17 @@ Pandora_Windows_Service::lauchTentacleProxy() {
server_port = "41121";
}
proxy_cmd = "tentacle_server.exe -b " + server_ip + " -g " + server_port + " -c " + proxy_max_connections + " -t " + proxy_timeout + "-d";
pandoraLog("Proxy mode enabled");
proxy_cmd = "tentacle_server.exe -b " + server_ip + " -g " + server_port + " -c " + proxy_max_connections + " -t " + proxy_timeout;
ZeroMemory (&si, sizeof (si));
ZeroMemory (&pi, sizeof (pi));
if (CreateProcess (NULL , (CHAR *)proxy_cmd.c_str (), NULL, NULL, FALSE,
CREATE_NO_WINDOW, NULL, NULL, &si, &pi) == 0) {
pandoraLog("There was a problem lauching Tentacle Proxy");
return -1;
}
pandoraLog("Proxy mode enabled");
} else {
pandoraLog ("[error] You can not proxy to localhost");
}