You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
self._raw_address = raw if isinstance(raw, bytes) else socket.inet_pton(family, raw)
with addresses of the form fe80::1c93:15b1:b6e3:91a4%eth1
I get lots of errors from wsdd like these (while running as a deamon under systemd):
OSError: illegal IP address string passed to inet_pton
Oct 13 18:32:50 sun wsdd[30824]: ERROR: Exception in callback MulticastHandler.read_socket(<socket.socke..., 3702, 0, 3)>)
Oct 13 18:32:50 sun wsdd[30824]: handle: <Handle MulticastHandler.read_socket(<socket.socke..., 3702, 0, 3)>)>
Oct 13 18:32:50 sun wsdd[30824]: Traceback (most recent call last):
Oct 13 18:32:50 sun wsdd[30824]: File "/usr/lib64/python3.6/asyncio/events.py", line 145, in _run
Oct 13 18:32:50 sun wsdd[30824]: File "/usr/local/sbin/wsdd", line 329, in read_socket
Oct 13 18:32:50 sun wsdd[30824]: File "/usr/local/sbin/wsdd", line 154, in __init__
Oct 13 18:32:50 sun wsdd[30824]: File "/usr/local/sbin/wsdd", line 96, in __init__
The fix seems to be to simply drop the zone id from the link-local IPv6 address before passing it to inet_pton as proposed below:
The problem happens in line 96:
with addresses of the form
fe80::1c93:15b1:b6e3:91a4%eth1
I get lots of errors from wsdd like these (while running as a deamon under systemd):
The fix seems to be to simply drop the zone id from the link-local IPv6 address before passing it to
inet_pton
as proposed below:The text was updated successfully, but these errors were encountered: