aboutsummaryrefslogtreecommitdiffstats
path: root/src/manager/manager.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/manager/manager.c')
-rw-r--r--src/manager/manager.c8
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;