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
Anders Bergh (@anders) Can confirm from our side that the socket option IPPROTO_IPV6\IPV6_V6ONLY is not yet implemented. We have opened a bug on our side to track this. No ETA at this time.
Python 2.7.6 (default, Jun 22 2015, 17:58:13)
[GCC 4.8.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import socket
>>> s = socket.socket(socket.AF_INET6, socket.SOCK_STREAM, 0)
>>> s.setsockopt(socket.IPPROTO_IPV6, socket.IPV6_V6ONLY, 1)
>>>
Activity
hungys commentedon Apr 11, 2016
Seems the same issue as #68
sunilmut commentedon Apr 12, 2016
Anders Bergh (@anders) Can confirm from our side that the socket option IPPROTO_IPV6\IPV6_V6ONLY is not yet implemented. We have opened a bug on our side to track this. No ETA at this time.
russalex commentedon Jun 10, 2016
Looks to be fixed in 14361:
adcen0107 commentedon Jan 18, 2021
do this
int flag = 1;
int ret = setsockopt(sock_fd, IPPROTO_IPV6, IPV6_V6ONLY, &flag, sizeof(flag));