From b181a0b96b8313206923e6f5b46b0803aaf64907 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Fri, 27 Jul 2012 12:31:28 +1000 Subject: lib/param: Remove use of lp{cfg,}_socket_address outside the NBT client and server In these other cases, control of the sockets to bind to can be obtained using "bind interfaces only = yes" and "interfaces = ". Andrew Bartlett --- source3/smbd/server.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'source3/smbd') diff --git a/source3/smbd/server.c b/source3/smbd/server.c index 63edf0020a..6abf8ccaeb 100644 --- a/source3/smbd/server.c +++ b/source3/smbd/server.c @@ -796,18 +796,15 @@ static bool open_sockets_smbd(struct smbd_parent_context *parent, /* Just bind to 0.0.0.0 - accept connections from anywhere. */ - const char *sock_addr = lp_socket_address(); + const char *sock_addr; char *sock_tok; const char *sock_ptr; - if (strequal(sock_addr, "0.0.0.0") || - strequal(sock_addr, "::")) { #if HAVE_IPV6 - sock_addr = "::,0.0.0.0"; + sock_addr = "::,0.0.0.0"; #else - sock_addr = "0.0.0.0"; + sock_addr = "0.0.0.0"; #endif - } for (sock_ptr=sock_addr; next_token_talloc(talloc_tos(), &sock_ptr, &sock_tok, " \t,"); ) { -- cgit