Skip to content

Commit 4a954c5

Browse files
author
Matt Boswell
committed
fix byte/string bug introduced in 1c46f25
This is the error message that this commit fixes: TypeError: sequence item 142: expected a bytes-like object, str found Complete what 1c46f25 started, more or less.
1 parent 4fcf7c7 commit 4a954c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sshuttle/server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ def hostwatch_ready(sock):
257257
if lines[-1]:
258258
# no terminating newline: entry isn't complete yet!
259259
hw.leftover = lines.pop()
260-
lines.append('')
260+
lines.append(b'')
261261
else:
262262
hw.leftover = b''
263263
mux.send(0, ssnet.CMD_HOST_LIST, b'\n'.join(lines))

0 commit comments

Comments
 (0)