do not use unused application-types
authorPhilipp Tölke <toelke@in.tum.de>
Wed, 27 Jul 2011 07:28:08 +0000 (07:28 +0000)
committerPhilipp Tölke <toelke@in.tum.de>
Wed, 27 Jul 2011 07:28:08 +0000 (07:28 +0000)
src/vpn/gnunet-daemon-vpn-helper.c

index 52c8b4a9c1b508855b9e150405543fcf15e92f07..ebdc0d2ae876021f5d8145d9626b7af33f076144 100644 (file)
@@ -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)
                     {