commit | b80b9955b97d0864db9829310cdfc5775942f661 | [log] [tgz] |
---|---|---|
author | Treehugger Robot <treehugger-gerrit@google.com> | Wed Mar 21 03:02:51 2018 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Wed Mar 21 03:02:51 2018 +0000 |
tree | a48ac39899fa27336cc9c8750ad441f55b2f1c54 | |
parent | 0bc4772ee5e9cbf772227732135fd13e125571a9 [diff] | |
parent | e7190ce3f23e6fd0d724765e0bb20f1ed0cfabf0 [diff] |
Merge "Enable EDNS and the DO-bit if the netcontext asks"
diff --git a/libc/dns/resolv/res_init.c b/libc/dns/resolv/res_init.c index 302a62b..2fb2a3d 100644 --- a/libc/dns/resolv/res_init.c +++ b/libc/dns/resolv/res_init.c
@@ -774,6 +774,9 @@ statp->netid = netcontext->dns_netid; statp->_mark = netcontext->dns_mark; statp->qhook = netcontext->qhook; + if (netcontext->flags & NET_CONTEXT_FLAG_USE_EDNS) { + statp->options |= RES_USE_EDNS0 | RES_USE_DNSSEC; + } } }