Dirty IPv6 stub

This commit is contained in:
Dmitri Bogomolov 2018-06-27 23:53:16 +03:00
parent 4a097e99b3
commit d9f7b85f91
Signed by untrusted user: g1itch
GPG Key ID: 720A756F18DEED13

View File

@ -104,6 +104,11 @@ class BMProto(AdvancedDispatcher, ObjectTracker):
except AttributeError: except AttributeError:
# unimplemented command # unimplemented command
logger.debug("unimplemented command %s", self.command) logger.debug("unimplemented command %s", self.command)
except ValueError as e:
# node has ipv6 addr which is not supported by python
if e.message == 'unknown address family 10':
logger.warning(
"command %s from unsupported IPv6 address", self.command)
except BMProtoInsufficientDataError: except BMProtoInsufficientDataError:
logger.debug("packet length too short, skipping") logger.debug("packet length too short, skipping")
except BMProtoExcessiveDataError: except BMProtoExcessiveDataError: