diff options
author | Martin Willi <martin@strongswan.org> | 2007-09-26 14:02:21 +0000 |
---|---|---|
committer | Martin Willi <martin@strongswan.org> | 2007-09-26 14:02:21 +0000 |
commit | c295d0eb4b11a024d1607f6a80275f372c345c08 (patch) | |
tree | ec3b578e771898bbf3ca35c1ae43e77ffdcea9d9 /src/manager/manager.c | |
parent | a9522e16003dd9f9fc7dc998a9017dbb41a65273 (diff) | |
download | strongswan-c295d0eb4b11a024d1607f6a80275f372c345c08.tar.bz2 strongswan-c295d0eb4b11a024d1607f6a80275f372c345c08.tar.xz |
refactored strongswan manager
removed buggy request parsing code, use ClearSilvers CGI kit instead
fixed CHILD_SA listing in manager (needs better design)
using secure XML communication through unix sockets
removed images with questionable (non-GPL) license
Diffstat (limited to 'src/manager/manager.c')
-rw-r--r-- | src/manager/manager.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/manager/manager.c b/src/manager/manager.c index b09d8d339..39c8d995a 100644 --- a/src/manager/manager.c +++ b/src/manager/manager.c @@ -82,12 +82,16 @@ static gateway_t* select_gateway(private_manager_t *this, int select_id) { if (select_id == id) { - if (port != 0) + if (port == 0) + { + this->gateway = gateway_create_unix(name); + } + else { host = host_create_from_string(address, port); if (host) { - this->gateway = gateway_create(name, host); + this->gateway = gateway_create_tcp(name, host); } } break; |