Skip to content

Commit

Permalink
Merge pull request #1004 from egbertbouman/fix_could_be_dispersy
Browse files Browse the repository at this point in the history
Fix for could_be_dispersy
  • Loading branch information
whirm committed Dec 17, 2014
2 parents 458abaf + c88256a commit ea47bc1
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 ea47bc1

Please sign in to comment.