Prevent adding bootstrap servers to knownnodes when received in addr
This commit is contained in:
parent
3feea1ee3f
commit
f23487a155
|
@ -437,9 +437,14 @@ class BMProto(AdvancedDispatcher, ObjectTracker):
|
||||||
# pylint: disable=redefined-outer-name
|
# pylint: disable=redefined-outer-name
|
||||||
addresses = self._decode_addr()
|
addresses = self._decode_addr()
|
||||||
for seenTime, stream, _, ip, port in addresses:
|
for seenTime, stream, _, ip, port in addresses:
|
||||||
decodedIP = protocol.checkIPAddress(str(ip))
|
ip = str(ip)
|
||||||
if stream not in state.streamsInWhichIAmParticipating:
|
if (
|
||||||
|
stream not in state.streamsInWhichIAmParticipating
|
||||||
|
# FIXME: should check against complete list
|
||||||
|
or ip.startswith('bootstrap')
|
||||||
|
):
|
||||||
continue
|
continue
|
||||||
|
decodedIP = protocol.checkIPAddress(ip)
|
||||||
if (
|
if (
|
||||||
decodedIP
|
decodedIP
|
||||||
and time.time() - seenTime > 0
|
and time.time() - seenTime > 0
|
||||||
|
|
Reference in New Issue
Block a user