Skip to content

Commit

Permalink
#614 fix plain-text packet detection
Browse files Browse the repository at this point in the history
git-svn-id: https://xpra.org/svn/Xpra/trunk@7078 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Aug 1, 2014
1 parent 480ef93 commit b31cf0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/xpra/client/client_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,7 @@ def _process_set_deflate(self, packet):
def _process_gibberish(self, packet):
(_, message, data) = packet
p = self._protocol
if (p and p.input_packetcount>0) or len([c not in string.printable for c in data])>0:
if (p and p.input_packetcount>0) or len([c for c in data if c not in string.printable])>0:
log.info("Received uninterpretable nonsense: %s", message)
log.info(" packet no %i data: %s", p.input_packetcount, repr_ellipsized(data))
else:
Expand Down

0 comments on commit b31cf0d

Please sign in to comment.