Message332147
A better workaround is IMHO to force the socket to be IPV6 only:
sd = socket.socket(socket.AF_INET6, socket.SOCK_STREAM, 0)
sd.setsockopt(socket.IPPROTO_IPV6, socket.IPV6_V6ONLY, 1)
That avoids the ordering problem as well as having to try all possible combinations of source and destination addreses.
I've tested that setting this option makes it impossible to bind a IPv6 socket to an IPv4 address. This is on macOS 10.14.2, I haven't checked other versions of macOS. |
|
| Date |
User |
Action |
Args |
| 2018-12-19 16:12:53 | ronaldoussoren | set | recipients:
+ ronaldoussoren, asvetlov, yselivanov, kyuupichan, twisteroid ambassador |
| 2018-12-19 16:12:53 | ronaldoussoren | set | messageid: <[email protected]> |
| 2018-12-19 16:12:53 | ronaldoussoren | link | issue35302 messages |
| 2018-12-19 16:12:53 | ronaldoussoren | create | |
|