diff options
Diffstat (limited to 'source4')
-rw-r--r-- | source4/lib/socket/socket.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source4/lib/socket/socket.c b/source4/lib/socket/socket.c index 84bb1ccafe..dbbae5ea7e 100644 --- a/source4/lib/socket/socket.c +++ b/source4/lib/socket/socket.c @@ -269,6 +269,10 @@ const struct socket_ops *socket_getops_byname(const char *name, enum socket_type #if HAVE_SOCKET_IPV6 if (strcmp("ipv6", name) == 0) { + if (lp_parm_bool(-1, "socket", "noipv6", False)) { + DEBUG(3, ("IPv6 support was disabled in smb.conf")); + return NULL; + } return socket_ipv6_ops(); } #endif |