From 3bdd354814501325d5fd47935e07d6c200b86e89 Mon Sep 17 00:00:00 2001 From: vieira Date: Tue, 8 Dec 2015 00:13:25 +0000 Subject: [PATCH] Fixed instance of bytes being used as str --- sshuttle/server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sshuttle/server.py b/sshuttle/server.py index 5f03844..d207360 100644 --- a/sshuttle/server.py +++ b/sshuttle/server.py @@ -274,7 +274,7 @@ def main(latency_control): mux.got_host_req = got_host_req def new_channel(channel, data): - (family, dstip, dstport) = data.split(',', 2) + (family, dstip, dstport) = data.decode("ASCII").split(',', 2) family = int(family) dstport = int(dstport) outwrap = ssnet.connect_dst(family, dstip, dstport)