diff --git a/txsocksx/client.py b/txsocksx/client.py index ab3eaaf..96a9a95 100644 --- a/txsocksx/client.py +++ b/txsocksx/client.py @@ -92,8 +92,8 @@ def sendAuthMethods(self, methods): def sendLogin(self, username, password): self.transport.write( b'\x01' - + to_binary(chr(len(username))) + username - + to_binary(chr(len(password))) + password) + + to_binary(chr(len(username))) + to_binary(username) + + to_binary(chr(len(password))) + to_binary(password)) def sendRequest(self, command, host, port): data = struct.pack('!BBB', c.VER_SOCKS5, command, c.RSV)