Fix is_ascii check when determining next layer

This commit is contained in:
strohu 2016-07-12 13:18:58 +01:00 committed by GitHub
parent 427ba88618
commit 6217614204

View File

@ -100,7 +100,7 @@ class RootContext(object):
is_ascii = (
len(d) == 3 and
# expect A-Za-z
all(65 <= x <= 90 and 97 <= x <= 122 for x in six.iterbytes(d))
all(65 <= x <= 90 or 97 <= x <= 122 for x in six.iterbytes(d))
)
if self.config.rawtcp and not is_ascii:
return protocol.RawTCPLayer(top_layer)