Typos in RPTO handling

This commit is contained in:
Simon 2021-01-07 00:48:19 +00:00
parent 79a2dd1099
commit 2d34b683a5
2 changed files with 4 additions and 4 deletions

View File

@ -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]))

View File

@ -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]
#*******************