From bb564a5950a14139f59305e549ca8665b8f31cb8 Mon Sep 17 00:00:00 2001 From: james Date: Tue, 30 Sep 2008 06:11:38 +0000 Subject: Management interface can now listen on a unix domain socket, for example: management /tmp/openvpn unix Also added management-client-user and management-client-group directives to control which processes are allowed to connect to the socket. git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3396 e7ae566f-a301-0410-adde-c780ea21d3b5 --- forward.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'forward.c') diff --git a/forward.c b/forward.c index 8967e6e..119392f 100644 --- a/forward.c +++ b/forward.c @@ -1290,11 +1290,11 @@ io_wait_dowork (struct context *c, const unsigned int flags) struct event_set_return esr[4]; /* These shifts all depend on EVENT_READ and EVENT_WRITE */ - static const int socket_shift = 0; /* depends on SOCKET_READ and SOCKET_WRITE */ - static const int tun_shift = 2; /* depends on TUN_READ and TUN_WRITE */ - static const int err_shift = 4; /* depends on ES_ERROR */ + static int socket_shift = 0; /* depends on SOCKET_READ and SOCKET_WRITE */ + static int tun_shift = 2; /* depends on TUN_READ and TUN_WRITE */ + static int err_shift = 4; /* depends on ES_ERROR */ #ifdef ENABLE_MANAGEMENT - static const int management_shift = 6; /* depends on MANAGEMENT_READ and MANAGEMENT_WRITE */ + static int management_shift = 6; /* depends on MANAGEMENT_READ and MANAGEMENT_WRITE */ #endif /* -- cgit v1.2.3