Commit dabb7e80 authored by Nigel Kukard's avatar Nigel Kukard
Browse files

* Added official support for UNIX sockets instead of only TCP

parent 98e29195
......@@ -51,6 +51,9 @@ sub configure {
my $inifile;
# We're being called from somewhere else, maybe a protocol?
return if (@_);
# Set defaults
$cfg->{'config_file'} = "/etc/cluebringer.conf";
$cfg->{'track_sessions'} = 0;
......@@ -61,6 +64,7 @@ sub configure {
$server->{'log_level'} = 2;
$server->{'log_file'} = "/var/log/cbpolicyd.log";
$server->{'proto'} = "tcp";
$server->{'host'} = "*";
$server->{'port'} = 10031;
......@@ -108,7 +112,7 @@ sub configure {
# Pull in params for the server
my @server_params = (
'log_level','log_file',
'port', 'host',
'proto', 'host', 'port',
'cidr_allow', 'cidr_deny',
'pid_file',
'user', 'group',
......
......@@ -81,13 +81,18 @@ EOT
#
#log_detail=
# IP to listen on, * for all
# Protocol to use "tcp" or "unix", defaults to "tcp"
#proto=tcp
# IP to listen on, * for all. Blank for unix sockets
#host=*
# Port to run on
# Port to run on, in the case of a unix socket it would be the path
# eg. 10031
# eg. /var/run/cbpolicyd/policyd.sock
#port=10031
# Timeout in communication with clients
# Timeout in communication with clients, defaults to 120s
#timeout=120
# cidr_allow/cidr_deny
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment