s4-ipv6: changed the default "socket address"
authorAndrew Tridgell <tridge@samba.org>
Thu, 12 May 2011 10:25:51 +0000 (12:25 +0200)
committerAndrew Tridgell <tridge@samba.org>
Mon, 6 Jun 2011 02:26:09 +0000 (12:26 +1000)
this changes the default socket address to the empty string. This
allows uses to specify 0.0.0.0 meaning to listen only on the IPv4
wildcard address.

source4/param/loadparm.c

index 8cfa43df5e4a7e7409eb9e87aa24a27b7e8bef1a..15451c4bcfb17b0d9e09bd80161cd3ccac836ef0 100644 (file)
@@ -2466,7 +2466,7 @@ struct loadparm_context *loadparm_init(TALLOC_CTX *mem_ctx)
        lpcfg_do_global_parameter(lp_ctx, "modules dir", dyn_MODULESDIR);
        lpcfg_do_global_parameter(lp_ctx, "ncalrpc dir", dyn_NCALRPCDIR);
 
-       lpcfg_do_global_parameter(lp_ctx, "socket address", "0.0.0.0");
+       lpcfg_do_global_parameter(lp_ctx, "socket address", "");
        lpcfg_do_global_parameter_var(lp_ctx, "server string",
                                   "Samba %s", SAMBA_VERSION_STRING);