aboutsummaryrefslogtreecommitdiff
path: root/src/vpn
diff options
context:
space:
mode:
authorPhilipp Tölke <toelke@in.tum.de>2011-06-15 07:15:32 +0000
committerPhilipp Tölke <toelke@in.tum.de>2011-06-15 07:15:32 +0000
commit2a77b2231c6718843ad5cfe1be0697aa4a725d03 (patch)
tree37b2f3dd5e23d5185447d284d5260d61a60a12ff /src/vpn
parent9dc2dba015ab0b34d651afb04a5fc9fd520a0aad (diff)
specify application-types
Diffstat (limited to 'src/vpn')
-rw-r--r--src/vpn/gnunet-daemon-exit.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/vpn/gnunet-daemon-exit.c b/src/vpn/gnunet-daemon-exit.c
index c999df8344..7ccf2b26b9 100644
--- a/src/vpn/gnunet-daemon-exit.c
+++ b/src/vpn/gnunet-daemon-exit.c
@@ -27,6 +27,7 @@
#include <gnunet_common.h>
#include <gnunet_program_lib.h>
#include <gnunet_protocols.h>
+#include <gnunet_applications.h>
#include <gnunet_mesh_service.h>
#include <gnunet_constants.h>
#include <string.h>
@@ -1177,7 +1178,15 @@ run (void *cls,
{receive_tcp_remote, GNUNET_MESSAGE_TYPE_REMOTE_TCP, 0},
{NULL, 0, 0}
};
- mesh_handle = GNUNET_MESH_connect (cfg_, NULL, NULL, handlers, NULL);
+
+ const static GNUNET_MESH_ApplicationType apptypes[] =
+ {
+ GNUNET_APPLICATION_TYPE_INTERNET_TCP_GATEWAY,
+ GNUNET_APPLICATION_TYPE_INTERNET_UDP_GATEWAY,
+ GNUNET_APPLICATION_TYPE_END
+ };
+
+ mesh_handle = GNUNET_MESH_connect (cfg_, NULL, NULL, handlers, apptypes);
cfg = cfg_;
udp_connections = GNUNET_CONTAINER_multihashmap_create (65536);