We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This doesn't work:
>>> client = SSDPClient(iface="eth0") Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/local/lib/python3.6/site-packages/ssdpy/client.py", line 34, in __init__ self.sock.setsockopt(socket.SOL_SOCKET, socket.SO_BINDTODEVICE, iface) TypeError: a bytes-like object is required, not 'str'
This does:
>>> client = SSDPClient(iface=b"eth0")
It's unintuitive to pass a bytes object here; SSDPClient should convert a string type implicitly.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
This doesn't work:
This does:
It's unintuitive to pass a bytes object here; SSDPClient should convert a string type implicitly.
The text was updated successfully, but these errors were encountered: