From: Philipp Tölke Date: Wed, 27 Jul 2011 07:28:08 +0000 (+0000) Subject: do not use unused application-types X-Git-Tag: initial-import-from-subversion-38251~17625 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=9840bf19f7b5d401aa7c5d30f0d01626ae5c1b88;p=oweals%2Fgnunet.git do not use unused application-types --- 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)), hdr->type = GNUNET_MESSAGE_TYPE_REMOTE_TCP; memcpy (hc + 1, &pkt6_tcp->tcp_hdr, ntohs (pkt6->ip6_hdr.paylgth)); - if (ntohs(pkt6_tcp->tcp_hdr.dpt) == 443) - app_type = GNUNET_APPLICATION_TYPE_INTERNET_HTTPS_GATEWAY; - else if (ntohs(pkt6_tcp->tcp_hdr.dpt) == 80) - app_type = GNUNET_APPLICATION_TYPE_INTERNET_HTTP_GATEWAY; - else - app_type = GNUNET_APPLICATION_TYPE_INTERNET_TCP_GATEWAY; + app_type = GNUNET_APPLICATION_TYPE_INTERNET_TCP_GATEWAY; } if (me->tunnel == NULL && NULL != cls) {