diff options
Diffstat (limited to 'source4')
-rw-r--r-- | source4/lib/socket/interface.c | 10 | ||||
-rw-r--r-- | source4/wrepl_server/wrepl_in_connection.c | 5 |
2 files changed, 1 insertions, 14 deletions
diff --git a/source4/lib/socket/interface.c b/source4/lib/socket/interface.c index 27ac7151a3..7a4733f466 100644 --- a/source4/lib/socket/interface.c +++ b/source4/lib/socket/interface.c @@ -502,20 +502,10 @@ bool iface_list_same_net(const char *ip1, const char *ip2, const char *netmask) /** return the list of wildcard interfaces this will include the IPv4 0.0.0.0, and may include IPv6 :: - it is overridden by the 'socket address' option in smb.conf */ const char **iface_list_wildcard(TALLOC_CTX *mem_ctx, struct loadparm_context *lp_ctx) { const char **ret; - const char *socket_address; - - /* the user may have configured a specific address */ - socket_address = lpcfg_socket_address(lp_ctx); - if (strcmp(socket_address, "") != 0) { - ret = (const char **)str_list_make(mem_ctx, socket_address, NULL); - return ret; - } - ret = (const char **)str_list_make(mem_ctx, "0.0.0.0", NULL); if (ret == NULL) return NULL; diff --git a/source4/wrepl_server/wrepl_in_connection.c b/source4/wrepl_server/wrepl_in_connection.c index 962a1cb7fa..251e5a0247 100644 --- a/source4/wrepl_server/wrepl_in_connection.c +++ b/source4/wrepl_server/wrepl_in_connection.c @@ -467,10 +467,7 @@ NTSTATUS wreplsrv_setup_sockets(struct wreplsrv_service *service, struct loadpar } } } else { - address = lpcfg_socket_address(lp_ctx); - if (strcmp(address, "") == 0) { - address = "0.0.0.0"; - } + address = "0.0.0.0"; status = stream_setup_socket(task, task->event_ctx, task->lp_ctx, model_ops, &wreplsrv_stream_ops, "ipv4", address, &port, lpcfg_socket_options(task->lp_ctx), |