From 4a954c547a5ec7b91d2d9122e284b33822caf634 Mon Sep 17 00:00:00 2001 From: Matt Boswell Date: Sun, 31 Jan 2016 16:20:41 -0500 Subject: [PATCH] fix byte/string bug introduced in 1c46f25e This is the error message that this commit fixes: TypeError: sequence item 142: expected a bytes-like object, str found Complete what 1c46f25e started, more or less. --- sshuttle/server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sshuttle/server.py b/sshuttle/server.py index 9ecce93..4ae2749 100644 --- a/sshuttle/server.py +++ b/sshuttle/server.py @@ -257,7 +257,7 @@ def main(latency_control): if lines[-1]: # no terminating newline: entry isn't complete yet! hw.leftover = lines.pop() - lines.append('') + lines.append(b'') else: hw.leftover = b'' mux.send(0, ssnet.CMD_HOST_LIST, b'\n'.join(lines))