aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/luarocks/cfg.lua5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/luarocks/cfg.lua b/src/luarocks/cfg.lua
index f6993ba5..49ce5188 100644
--- a/src/luarocks/cfg.lua
+++ b/src/luarocks/cfg.lua
@@ -599,11 +599,6 @@ cfg.http_proxy = os.getenv("http_proxy")
599cfg.https_proxy = os.getenv("https_proxy") 599cfg.https_proxy = os.getenv("https_proxy")
600cfg.no_proxy = os.getenv("no_proxy") 600cfg.no_proxy = os.getenv("no_proxy")
601 601
602-- make sure that no_proxy is not 'alone'
603if cfg.no_proxy and not (cfg.https_proxy or cfg.http_proxy) then
604 cfg.no_proxy = nil
605end
606
607--- Check if platform was detected 602--- Check if platform was detected
608-- @param query string: The platform name to check. 603-- @param query string: The platform name to check.
609-- @return boolean: true if LuaRocks is currently running on queried platform. 604-- @return boolean: true if LuaRocks is currently running on queried platform.