IPv6 fix for socket option