diff options
author | Philipp Tölke <toelke@in.tum.de> | 2011-07-27 07:28:08 +0000 |
---|---|---|
committer | Philipp Tölke <toelke@in.tum.de> | 2011-07-27 07:28:08 +0000 |
commit | 9840bf19f7b5d401aa7c5d30f0d01626ae5c1b88 (patch) | |
tree | e9adafdfcbf129c1616f89d874e6c496e5eecf16 /src/vpn | |
parent | b905385c652a125e6f6bb8b0c7719725d4a90a2c (diff) | |
download | gnunet-9840bf19f7b5d401aa7c5d30f0d01626ae5c1b88.tar.gz gnunet-9840bf19f7b5d401aa7c5d30f0d01626ae5c1b88.zip |
do not use unused application-types
Diffstat (limited to 'src/vpn')
-rw-r--r-- | src/vpn/gnunet-daemon-vpn-helper.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/vpn/gnunet-daemon-vpn-helper.c b/src/vpn/gnunet-daemon-vpn-helper.c index 52c8b4a9c..ebdc0d2ae 100644 --- a/src/vpn/gnunet-daemon-vpn-helper.c +++ b/src/vpn/gnunet-daemon-vpn-helper.c | |||
@@ -331,12 +331,7 @@ message_token (void *cls __attribute__((unused)), | |||
331 | hdr->type = GNUNET_MESSAGE_TYPE_REMOTE_TCP; | 331 | hdr->type = GNUNET_MESSAGE_TYPE_REMOTE_TCP; |
332 | memcpy (hc + 1, &pkt6_tcp->tcp_hdr, | 332 | memcpy (hc + 1, &pkt6_tcp->tcp_hdr, |
333 | ntohs (pkt6->ip6_hdr.paylgth)); | 333 | ntohs (pkt6->ip6_hdr.paylgth)); |
334 | if (ntohs(pkt6_tcp->tcp_hdr.dpt) == 443) | 334 | app_type = GNUNET_APPLICATION_TYPE_INTERNET_TCP_GATEWAY; |
335 | app_type = GNUNET_APPLICATION_TYPE_INTERNET_HTTPS_GATEWAY; | ||
336 | else if (ntohs(pkt6_tcp->tcp_hdr.dpt) == 80) | ||
337 | app_type = GNUNET_APPLICATION_TYPE_INTERNET_HTTP_GATEWAY; | ||
338 | else | ||
339 | app_type = GNUNET_APPLICATION_TYPE_INTERNET_TCP_GATEWAY; | ||
340 | } | 335 | } |
341 | if (me->tunnel == NULL && NULL != cls) | 336 | if (me->tunnel == NULL && NULL != cls) |
342 | { | 337 | { |