aboutsummaryrefslogtreecommitdiff
path: root/src/luarocks/cfg.lua
diff options
context:
space:
mode:
Diffstat (limited to 'src/luarocks/cfg.lua')
-rw-r--r--src/luarocks/cfg.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/luarocks/cfg.lua b/src/luarocks/cfg.lua
index b7e76535..f6993ba5 100644
--- a/src/luarocks/cfg.lua
+++ b/src/luarocks/cfg.lua
@@ -597,6 +597,12 @@ cfg.user_agent = "LuaRocks/"..cfg.program_version.." "..cfg.arch
597 597
598cfg.http_proxy = os.getenv("http_proxy") 598cfg.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")
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
600 606
601--- Check if platform was detected 607--- Check if platform was detected
602-- @param query string: The platform name to check. 608-- @param query string: The platform name to check.