mirror of
https://github.com/denoland/deno.git
synced 2025-02-01 12:16:11 -05:00
fix(ext/net): enable EDNS0 for Deno.resolveDns
This commit is contained in:
parent
e4a16e91fa
commit
f619b1d354
1 changed files with 3 additions and 1 deletions
|
@ -646,7 +646,7 @@ where
|
||||||
cancel_rid,
|
cancel_rid,
|
||||||
} = args;
|
} = args;
|
||||||
|
|
||||||
let (config, opts) = if let Some(name_server) =
|
let (config, mut opts) = if let Some(name_server) =
|
||||||
options.as_ref().and_then(|o| o.name_server.as_ref())
|
options.as_ref().and_then(|o| o.name_server.as_ref())
|
||||||
{
|
{
|
||||||
let group = NameServerConfigGroup::from_ips_clear(
|
let group = NameServerConfigGroup::from_ips_clear(
|
||||||
|
@ -662,6 +662,8 @@ where
|
||||||
system_conf::read_system_conf()?
|
system_conf::read_system_conf()?
|
||||||
};
|
};
|
||||||
|
|
||||||
|
opts.edns0 = true;
|
||||||
|
|
||||||
{
|
{
|
||||||
let mut s = state.borrow_mut();
|
let mut s = state.borrow_mut();
|
||||||
let perm = s.borrow_mut::<NP>();
|
let perm = s.borrow_mut::<NP>();
|
||||||
|
|
Loading…
Add table
Reference in a new issue