fix authentication checks on RX packets
This commit is contained in:
parent
e80fe33545
commit
697b492d4e
@ -1098,6 +1098,7 @@ class IPSC(DatagramProtocol):
|
|||||||
_ipsc_seq = data[5:6]
|
_ipsc_seq = data[5:6]
|
||||||
|
|
||||||
# AUTHENTICATE THE PACKET
|
# AUTHENTICATE THE PACKET
|
||||||
|
if self._local['AUTH_ENABLED']:
|
||||||
if not self.validate_auth(self._local['AUTH_KEY'], data):
|
if not self.validate_auth(self._local['AUTH_KEY'], data):
|
||||||
logger.warning('(%s) AuthError: IPSC packet failed authentication. Type %s: Peer: %s, %s:%s', self._network, h(_packettype), int_id(_peerid), host, port)
|
logger.warning('(%s) AuthError: IPSC packet failed authentication. Type %s: Peer: %s, %s:%s', self._network, h(_packettype), int_id(_peerid), host, port)
|
||||||
return
|
return
|
||||||
|
Loading…
x
Reference in New Issue
Block a user