Typos in RPTO handling
This commit is contained in:
parent
79a2dd1099
commit
2d34b683a5
@ -528,7 +528,7 @@ class HBSYSTEM(DatagramProtocol):
|
|||||||
_peer_id = _data[4:8]
|
_peer_id = _data[4:8]
|
||||||
if _peer_id in self._peers and self._peers[_peer_id]['SOCKADDR'] == _sockaddr:
|
if _peer_id in self._peers and self._peers[_peer_id]['SOCKADDR'] == _sockaddr:
|
||||||
_this_peer = self._peers[_peer_id]
|
_this_peer = self._peers[_peer_id]
|
||||||
self._peer_sema.aquire(blocking-True)
|
self._peer_sema.acquire(blocking=True)
|
||||||
_this_peer['OPTIONS'] = _data[8:]
|
_this_peer['OPTIONS'] = _data[8:]
|
||||||
self._peer_sema.release()
|
self._peer_sema.release()
|
||||||
self.send_peer(_peer_id, b''.join([RPTACK, _peer_id]))
|
self.send_peer(_peer_id, b''.join([RPTACK, _peer_id]))
|
||||||
|
@ -147,11 +147,11 @@ if __name__ == '__main__':
|
|||||||
|
|
||||||
Master = "127.0.0.1"
|
Master = "127.0.0.1"
|
||||||
ListenPort = 62031
|
ListenPort = 62031
|
||||||
DestportStart = 50000
|
DestportStart = 54000
|
||||||
DestPortEnd = 50600
|
DestPortEnd = 54001
|
||||||
Timeout = 30
|
Timeout = 30
|
||||||
Stats = True
|
Stats = True
|
||||||
Debug = False
|
Debug = True
|
||||||
BlackList = [1234567]
|
BlackList = [1234567]
|
||||||
|
|
||||||
#*******************
|
#*******************
|
||||||
|
Loading…
Reference in New Issue
Block a user