uvloop
uvloop copied to clipboard
Add support for special hostname <broadcast>
Currently sendto would fail if you use the special hostname <broadcast>, which is a valid use according to the Python docs. This PR proposes to to "resolve" it to the broadcast address before passing it to uv_ip4_addr.
This resolves the issue https://github.com/MagicStack/uvloop/issues/540
Thanks for the review. I moved the "resolving" of <broadcast> to the UDP handle and added a test case for getaddrinfo
Any chance of this being merged?