… | |
… | |
113 | default_node.udp_port = DEFAULT_UDPPORT; |
113 | default_node.udp_port = DEFAULT_UDPPORT; |
114 | default_node.tcp_port = DEFAULT_UDPPORT; // ehrm |
114 | default_node.tcp_port = DEFAULT_UDPPORT; // ehrm |
115 | default_node.connectmode = conf_node::C_ALWAYS; |
115 | default_node.connectmode = conf_node::C_ALWAYS; |
116 | default_node.compress = true; |
116 | default_node.compress = true; |
117 | default_node.protocols = PROT_UDPv4; |
117 | default_node.protocols = PROT_UDPv4; |
|
|
118 | |
|
|
119 | conf.pidfilename = strdup (LOCALSTATEDIR "/run/vped.pid"); |
118 | } |
120 | } |
119 | |
121 | |
120 | void configuration::cleanup() |
122 | void configuration::cleanup() |
121 | { |
123 | { |
122 | if (rsa_key) |
124 | if (rsa_key) |
… | |
… | |
483 | printf ("\n"); |
485 | printf ("\n"); |
484 | } |
486 | } |
485 | |
487 | |
486 | configuration::configuration () |
488 | configuration::configuration () |
487 | { |
489 | { |
|
|
490 | asprintf (&confbase, "%s/vpe", CONFDIR); |
|
|
491 | |
488 | init (); |
492 | init (); |
489 | } |
493 | } |
490 | |
494 | |
491 | configuration::~configuration () |
495 | configuration::~configuration () |
492 | { |
496 | { |