File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -60,7 +60,6 @@ const lookup = (
6060 response . on ( 'data' , ( d ) => {
6161 const result = dnsPacket . decode ( d ) ;
6262 if ( result . answers && result . answers . length > 0 ) {
63- console . log ( 'ip results: ' + result . answers . length ) ;
6463 const answer : any = result . answers [ 0 ] ;
6564 dnsCache . set ( hostname , {
6665 address : answer . data ,
Original file line number Diff line number Diff line change @@ -296,6 +296,12 @@ export function main(init: Init): void {
296296 }
297297
298298 async function onAppReady ( ) {
299+ // Enable DoH
300+ app . configureHostResolver ( {
301+ secureDnsMode : 'secure' ,
302+ secureDnsServers : [ 'https://cloudflare-dns.com/dns-query' , 'https://dns.google/dns-query' ]
303+ } ) ;
304+
299305 if ( Util . isDev ) {
300306 installExtension ( REACT_DEVELOPER_TOOLS , {
301307 loadExtensionOptions : {
You can’t perform that action at this time.
0 commit comments