From 80a54491f9bcb02670c4e32734a6d5a6621123cf Mon Sep 17 00:00:00 2001 From: Simon Date: Mon, 25 Jul 2022 01:37:55 +0100 Subject: [PATCH] fixing RPTO --- hotspot_proxy_v2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hotspot_proxy_v2.py b/hotspot_proxy_v2.py index 235829f..985f2c7 100644 --- a/hotspot_proxy_v2.py +++ b/hotspot_proxy_v2.py @@ -261,7 +261,7 @@ class API(NetstringReceiver): _options = _message[10:] _cmd = _message[11:15] - if _cmd == RPTO and (_dmrid in self.peerTrack): + if _cmd == b'RPTO' and (_dmrid in self.peerTrack): if self.debug: print("(API) Passing options line for ID {} to server".format(int_id(peer_id))) _dport = self.peerTrack[_peer_id]['dport']