From 6212a592c52372080c7c5035c6a2513dcb50cf61 Mon Sep 17 00:00:00 2001 From: Rob Austein Date: Wed, 2 Sep 2020 02:20:54 -0400 Subject: Well of course there had to be one last dumb Python3 string bug --- cryptech_muxd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cryptech_muxd') diff --git a/cryptech_muxd b/cryptech_muxd index bc77a2e..d2fd54e 100755 --- a/cryptech_muxd +++ b/cryptech_muxd @@ -383,7 +383,7 @@ class ProbeIOStream(SerialIOStream): is_cty = any(prompt in response for prompt in (b"Username:", b"Password:", b"cryptech>")) try: - is_rpc = response[response.index(SLIP_END + RPC_reply) + len(SLIP_END + RPC_reply) + 4] == SLIP_END + is_rpc = response[response.index(SLIP_END + RPC_reply) + len(SLIP_END + RPC_reply) + 4] == SLIP_END[0] except ValueError: is_rpc = False except IndexError: -- cgit v1.2.3