summaryrefslogtreecommitdiff
path: root/src/vpn
diff options
context:
space:
mode:
authorBart Polot <bart@net.in.tum.de>2016-07-20 17:13:26 +0000
committerBart Polot <bart@net.in.tum.de>2016-07-20 17:13:26 +0000
commit90c70e8315c4a366996da379f839dc84d21d5f38 (patch)
tree0bfd73d2da8b8efb8de888c09ea4dd5bfc4cdb0f /src/vpn
parent3aab63d5c50db0eb784d3b65b2bd989d3458c960 (diff)
- fix CADET-using services
Diffstat (limited to 'src/vpn')
-rw-r--r--src/vpn/gnunet-service-vpn.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/vpn/gnunet-service-vpn.c b/src/vpn/gnunet-service-vpn.c
index ae7cb57cc..812016205 100644
--- a/src/vpn/gnunet-service-vpn.c
+++ b/src/vpn/gnunet-service-vpn.c
@@ -758,7 +758,7 @@ handle_regex_result (void *cls,
ts->channel = GNUNET_CADET_channel_create (cadet_handle,
ts,
id,
- apptype,
+ GC_u2h (apptype),
GNUNET_CADET_OPTION_DEFAULT);
}
@@ -801,7 +801,7 @@ create_channel_to_destination (struct DestinationChannel *dt,
ts->channel = GNUNET_CADET_channel_create (cadet_handle,
ts,
&dt->destination->details.service_destination.target,
- apptype,
+ GC_u2h (apptype),
GNUNET_CADET_OPTION_DEFAULT);
if (NULL == ts->channel)
{
@@ -3090,10 +3090,9 @@ run (void *cls,
cadet_handle =
GNUNET_CADET_connect (cfg_, NULL,
- NULL,
&channel_cleaner,
- cadet_handlers,
- NULL);
+ cadet_handlers);
+ // FIXME never opens ports???
helper_handle = GNUNET_HELPER_start (GNUNET_NO,
"gnunet-helper-vpn", vpn_argv,
&message_token, NULL, NULL);