mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
r12881: Hard-coded defaults are silly. We have smb.conf for a reason.
Andrew Bartlett
(This used to be commit c9402f9227
)
This commit is contained in:
parent
a7a79d2b25
commit
7d90b3f802
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user