tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

DNSAdditionalInfo.cpp (577B)


      1 /* This Source Code Form is subject to the terms of the Mozilla Public
      2 * License, v. 2.0. If a copy of the MPL was not distributed with this
      3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
      4 
      5 #include "DNSAdditionalInfo.h"
      6 
      7 namespace mozilla {
      8 namespace net {
      9 
     10 NS_IMPL_ISUPPORTS(DNSAdditionalInfo, nsIDNSAdditionalInfo)
     11 
     12 NS_IMETHODIMP
     13 DNSAdditionalInfo::GetPort(int32_t* aPort) {
     14  *aPort = mPort;
     15  return NS_OK;
     16 }
     17 
     18 NS_IMETHODIMP
     19 DNSAdditionalInfo::GetResolverURL(nsACString& aURL) {
     20  aURL = mURL;
     21  return NS_OK;
     22 }
     23 
     24 }  // namespace net
     25 }  // namespace mozilla