Skip to content

Commit

Permalink
Fix for could_be_dispersy
Browse files Browse the repository at this point in the history
  • Loading branch information
egbertbouman committed Dec 17, 2014
1 parent e072ff4 commit c88256a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Tribler/community/tunnel/conversion.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit c88256a

Please sign in to comment.