summaryrefslogtreecommitdiff
path: root/source4/smb_server
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2011-05-12 12:36:33 +0200
committerAndrew Tridgell <tridge@samba.org>2011-06-06 12:26:10 +1000
commit8f3ce14ea744d721636d3e096ae1f021aae042bd (patch)
tree6396fe152d179274a9bc6fec0e4ae1cf7e9bff97 /source4/smb_server
parentdc8c8fd9e4f85974cd0665e613d4422ba8dd900e (diff)
downloadsamba-8f3ce14ea744d721636d3e096ae1f021aae042bd.tar.gz
samba-8f3ce14ea744d721636d3e096ae1f021aae042bd.tar.bz2
samba-8f3ce14ea744d721636d3e096ae1f021aae042bd.zip
s4-ipv6: use "ip" instead of "ipv4" for servers
this allows stream_setup_socket() to work with both v4 and v6 addresses
Diffstat (limited to 'source4/smb_server')
-rw-r--r--source4/smb_server/smb_server.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/smb_server/smb_server.c b/source4/smb_server/smb_server.c
index d21e5fbdb0..d64a597d31 100644
--- a/source4/smb_server/smb_server.c
+++ b/source4/smb_server/smb_server.c
@@ -190,7 +190,7 @@ _PUBLIC_ NTSTATUS smbsrv_add_socket(TALLOC_CTX *mem_ctx,
if (port == 0) continue;
status = stream_setup_socket(mem_ctx, event_context, lp_ctx,
model_ops, &smb_stream_ops,
- "ipv4", address, &port,
+ "ip", address, &port,
lpcfg_socket_options(lp_ctx),
NULL);
NT_STATUS_NOT_OK_RETURN(status);