mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
Add util to the PATH before launching the proxy. Fixes ticket #1175.
(cherry picked from commit 787b76bb492a4c5d86204478205a11fb764b13b1)
This commit is contained in:
parent
a3783f70e1
commit
341928b8dd
@ -265,22 +265,6 @@ Pandora_Windows_Service::pandora_init () {
|
|||||||
debug = conf->getValue ("debug");
|
debug = conf->getValue ("debug");
|
||||||
setPandoraDebug (is_enabled (debug));
|
setPandoraDebug (is_enabled (debug));
|
||||||
|
|
||||||
/*Check if proxy mode is set*/
|
|
||||||
proxy_mode = conf->getValue ("proxy_mode");
|
|
||||||
if (proxy_mode != "" && this->tentacle_proxy == false) {
|
|
||||||
launchTentacleProxy();
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Launch UDP Server */
|
|
||||||
udp_server_enabled = conf->getValue ("udp_server");
|
|
||||||
if (udp_server_enabled.compare ("1") == 0 && this->udp_server == NULL) {
|
|
||||||
udp_server_port = conf->getValue ("udp_server_port");
|
|
||||||
udp_server_addr = conf->getValue ("udp_server_address");
|
|
||||||
udp_server_auth_addr = conf->getValue ("udp_server_auth_address");
|
|
||||||
this->udp_server = new UDP_Server (this, udp_server_addr, udp_server_auth_addr, atoi (udp_server_port.c_str ()));
|
|
||||||
((UDP_Server *)this->udp_server)->start ();
|
|
||||||
}
|
|
||||||
|
|
||||||
if (first_run == 1) {
|
if (first_run == 1) {
|
||||||
first_run = 0;
|
first_run = 0;
|
||||||
|
|
||||||
@ -296,6 +280,22 @@ Pandora_Windows_Service::pandora_init () {
|
|||||||
|
|
||||||
pandoraLog ("Pandora agent started");
|
pandoraLog ("Pandora agent started");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*Check if proxy mode is set*/
|
||||||
|
proxy_mode = conf->getValue ("proxy_mode");
|
||||||
|
if (proxy_mode != "" && this->tentacle_proxy == false) {
|
||||||
|
launchTentacleProxy();
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Launch UDP Server */
|
||||||
|
udp_server_enabled = conf->getValue ("udp_server");
|
||||||
|
if (udp_server_enabled.compare ("1") == 0 && this->udp_server == NULL) {
|
||||||
|
udp_server_port = conf->getValue ("udp_server_port");
|
||||||
|
udp_server_addr = conf->getValue ("udp_server_address");
|
||||||
|
udp_server_auth_addr = conf->getValue ("udp_server_auth_address");
|
||||||
|
this->udp_server = new UDP_Server (this, udp_server_addr, udp_server_auth_addr, atoi (udp_server_port.c_str ()));
|
||||||
|
((UDP_Server *)this->udp_server)->start ();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
|
Loading…
x
Reference in New Issue
Block a user