[tor-commits] [meek/master] Set the TRANSPARENT_PROXY_RESOLVES_HOST proxy flag.

dcf at torproject.org dcf at torproject.org
Wed May 28 07:03:21 UTC 2014


commit 529045fe726aa21dff052a00e57fabec6aa8cdc8
Author: David Fifield <david at bamsoftware.com>
Date:   Sat May 24 19:16:25 2014 -0700

    Set the TRANSPARENT_PROXY_RESOLVES_HOST proxy flag.
    
    This flag has no effect for the "direct" proxy type, but we'll want to
    set it uniformly for all other proxy types.
---
 firefox/components/main.js |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/firefox/components/main.js b/firefox/components/main.js
index e1284f0..e2a2484 100644
--- a/firefox/components/main.js
+++ b/firefox/components/main.js
@@ -133,9 +133,10 @@ MeekHTTPHelper.lookupStatus = function(status) {
 //   undefined
 MeekHTTPHelper.buildProxyInfo = function(spec) {
     // https://developer.mozilla.org/en-US/docs/Mozilla/Tech/XPCOM/Reference/Interface/nsIProxyInfo#Constants
+    var flags = Components.interfaces.nsIProxyInfo.TRANSPARENT_PROXY_RESOLVES_HOST;
     if (spec === undefined) {
         // "direct"; i.e., no proxy. This is the default.
-        return MeekHTTPHelper.proxyProtocolService.newProxyInfo("direct", "", 0, 0, 0xffffffff, null);
+        return MeekHTTPHelper.proxyProtocolService.newProxyInfo("direct", "", 0, flags, 0xffffffff, null);
     }
     return null;
 };





More information about the tor-commits mailing list