diff options
author | james <james@e7ae566f-a301-0410-adde-c780ea21d3b5> | 2009-04-10 21:33:14 +0000 |
---|---|---|
committer | james <james@e7ae566f-a301-0410-adde-c780ea21d3b5> | 2009-04-10 21:33:14 +0000 |
commit | 86f5c7c9d540096bcabf33b49303090e6638a99d (patch) | |
tree | 490c413b24e0416e2d6c8c560dacf063f4813539 /socket.c | |
parent | Added the ability to read the configuration file (diff) | |
download | openvpn-86f5c7c9d540096bcabf33b49303090e6638a99d.tar.xz |
Allow "management-client" directive to be used
with unix domain sockets.
git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@4128 e7ae566f-a301-0410-adde-c780ea21d3b5
Diffstat (limited to '')
-rw-r--r-- | socket.c | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -2703,6 +2703,16 @@ socket_accept_unix (socket_descriptor_t sd, return ret; } +int +socket_connect_unix (socket_descriptor_t sd, + struct sockaddr_un *remote) +{ + int status = connect (sd, (struct sockaddr *) remote, sizeof (struct sockaddr_un)); + if (status) + status = openvpn_errno_socket (); + return status; +} + void sockaddr_unix_init (struct sockaddr_un *local, const char *path) { |