mirror of
https://github.com/samba-team/samba.git
synced 2025-11-16 20:23:50 +03:00
Revert "tsocket: not all systems have IPV6_V6ONLY"
This reverts commit 63fc397808.
We now don't support IPv6 when IPV6_V6ONLY isn't available,
as we rely on the behavior.
metze
This commit is contained in:
@@ -1206,7 +1206,7 @@ static int tdgram_bsd_dgram_socket(const struct tsocket_address *local,
|
||||
bsds->fd = fd;
|
||||
talloc_set_destructor(bsds, tdgram_bsd_destructor);
|
||||
|
||||
#if defined(HAVE_IPV6) && defined(IPV6_V6ONLY)
|
||||
#ifdef HAVE_IPV6
|
||||
if (do_ipv6only) {
|
||||
int val = 1;
|
||||
|
||||
@@ -2037,7 +2037,7 @@ static struct tevent_req * tstream_bsd_connect_send(TALLOC_CTX *mem_ctx,
|
||||
goto post;
|
||||
}
|
||||
|
||||
#if defined(HAVE_IPV6) && defined(IPV6_V6ONLY)
|
||||
#ifdef HAVE_IPV6
|
||||
if (do_ipv6only) {
|
||||
int val = 1;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user