From c88256a46de2aefb188f3eb59269f2756781e91a Mon Sep 17 00:00:00 2001 From: Egbert Bouman Date: Wed, 17 Dec 2014 13:38:09 +0100 Subject: [PATCH] Fix for could_be_dispersy --- Tribler/community/tunnel/conversion.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tribler/community/tunnel/conversion.py b/Tribler/community/tunnel/conversion.py index 46c35cdc5cd..dee7a14b005 100644 --- a/Tribler/community/tunnel/conversion.py +++ b/Tribler/community/tunnel/conversion.py @@ -488,7 +488,7 @@ def could_be_dht(data): @staticmethod def could_be_dispersy(data): - return data[:TUNNEL_PREFIX_LENGHT] == TUNNEL_PREFIX and len(data) > 22 + return data[:TUNNEL_PREFIX_LENGHT] == TUNNEL_PREFIX and len(data) >= (23 + TUNNEL_PREFIX_LENGHT) @staticmethod def is_allowed(data):