diff --git a/netwerk/dns/nsDNSService2.cpp b/netwerk/dns/nsDNSService2.cpp index d36cf7e9a7f54..f115cab4de34f 100644 --- a/netwerk/dns/nsDNSService2.cpp +++ b/netwerk/dns/nsDNSService2.cpp @@ -876,6 +876,9 @@ nsDNSService::Init() { RegisterWeakMemoryReporter(this); + nsCOMPtr ohttpService( + do_GetService("@mozilla.org/network/oblivious-http-service;1")); + mTrrService = new TRRService(); if (NS_FAILED(mTrrService->Init())) { mTrrService = nullptr;