mirror of
https://github.com/sshuttle/sshuttle.git
synced 2025-01-23 22:38:53 +01:00
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.
This commit is contained in:
parent
4fcf7c73da
commit
4a954c547a
@ -257,7 +257,7 @@ def main(latency_control):
|
|||||||
if lines[-1]:
|
if lines[-1]:
|
||||||
# no terminating newline: entry isn't complete yet!
|
# no terminating newline: entry isn't complete yet!
|
||||||
hw.leftover = lines.pop()
|
hw.leftover = lines.pop()
|
||||||
lines.append('')
|
lines.append(b'')
|
||||||
else:
|
else:
|
||||||
hw.leftover = b''
|
hw.leftover = b''
|
||||||
mux.send(0, ssnet.CMD_HOST_LIST, b'\n'.join(lines))
|
mux.send(0, ssnet.CMD_HOST_LIST, b'\n'.join(lines))
|
||||||
|
Loading…
Reference in New Issue
Block a user