From 2d34b683a50261fbaa39e89ba695e2a95bf251e8 Mon Sep 17 00:00:00 2001 From: Simon Date: Thu, 7 Jan 2021 00:48:19 +0000 Subject: [PATCH] Typos in RPTO handling --- hblink.py | 2 +- hotspot_proxy_v2.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/hblink.py b/hblink.py index 30d200d..e70bc40 100755 --- a/hblink.py +++ b/hblink.py @@ -528,7 +528,7 @@ class HBSYSTEM(DatagramProtocol): _peer_id = _data[4:8] if _peer_id in self._peers and self._peers[_peer_id]['SOCKADDR'] == _sockaddr: _this_peer = self._peers[_peer_id] - self._peer_sema.aquire(blocking-True) + self._peer_sema.acquire(blocking=True) _this_peer['OPTIONS'] = _data[8:] self._peer_sema.release() self.send_peer(_peer_id, b''.join([RPTACK, _peer_id])) diff --git a/hotspot_proxy_v2.py b/hotspot_proxy_v2.py index 03aa2a9..e0bdcba 100644 --- a/hotspot_proxy_v2.py +++ b/hotspot_proxy_v2.py @@ -147,11 +147,11 @@ if __name__ == '__main__': Master = "127.0.0.1" ListenPort = 62031 - DestportStart = 50000 - DestPortEnd = 50600 + DestportStart = 54000 + DestPortEnd = 54001 Timeout = 30 Stats = True - Debug = False + Debug = True BlackList = [1234567] #*******************