mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
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:
parent
8ab68543a5
commit
838ab1519b
@ -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
|
||||
|
Binary file not shown.
@ -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");
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user