mirror of
https://github.com/samba-team/samba.git
synced 2025-08-03 04:22:09 +03:00
r12881: Hard-coded defaults are silly. We have smb.conf for a reason.
Andrew Bartlett
This commit is contained in:
committed by
Gerald (Jerry) Carter
parent
97bff3e049
commit
c9402f9227
@ -24,9 +24,6 @@
|
||||
|
||||
struct libnet_context *libnet_context_init(struct event_context *ev)
|
||||
{
|
||||
/* default name resolution methods */
|
||||
const char *nr_methods[] = { "lmhosts", "wins", "host", "bcast", NULL };
|
||||
|
||||
struct libnet_context *ctx;
|
||||
|
||||
/* create brand new libnet context */
|
||||
@ -46,7 +43,7 @@ struct libnet_context *libnet_context_init(struct event_context *ev)
|
||||
ctx->event_ctx = ev;
|
||||
|
||||
/* name resolution methods */
|
||||
ctx->name_res_methods = str_list_copy(ctx, nr_methods);
|
||||
ctx->name_res_methods = str_list_copy(ctx, lp_name_resolve_order());
|
||||
|
||||
return ctx;
|
||||
}
|
||||
|
Reference in New Issue
Block a user