Remove proxy tracking if master sends MSTNAK
This commit is contained in:
parent
287ebc49cb
commit
8038af2958
@ -22,10 +22,9 @@ class Proxy(DatagramProtocol):
|
||||
if host == '127.0.0.1' and port in self.connTrack:
|
||||
if int(self.connTrack[port]['time'])+self.timeout >nowtime:
|
||||
self.transport.write(data,(self.connTrack[port]['host'],self.connTrack[port]['sport']))
|
||||
#if master refuses login, remove tracking and block fornowtimeout seconds
|
||||
#if data == b'MSTNAK\x00#\xbf"':
|
||||
#self.connTrack[port]['time'] = False
|
||||
#self.connTrack[port]['nacktime'] =nowtime+self.timeout
|
||||
#if master refuses login, remove tracking
|
||||
if data == b'MSTNAK\x00#\xbf"':
|
||||
self.connTrack[port]['time'] = False
|
||||
if Debug:
|
||||
print("return path match")
|
||||
print(data)
|
||||
|
Loading…
Reference in New Issue
Block a user