aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgnacio Burgueño <ignaciob@inconcertcc.com>2015-04-17 16:17:34 -0300
committerIgnacio Burgueño <ignaciob@inconcertcc.com>2015-04-17 16:17:34 -0300
commit7b6efb92c092aa00affa8fe63b6226476864c6e3 (patch)
tree14b6151ea52274584f6509de481ab3a7954a7718
parent2c536b4bdd07b6f8983876a01296a1e8c752d2be (diff)
downloadluarocks-7b6efb92c092aa00affa8fe63b6226476864c6e3.tar.gz
luarocks-7b6efb92c092aa00affa8fe63b6226476864c6e3.tar.bz2
luarocks-7b6efb92c092aa00affa8fe63b6226476864c6e3.zip
Trust the user :)
-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.