diff options
Diffstat (limited to 'src/luarocks/cfg.lua')
-rw-r--r-- | src/luarocks/cfg.lua | 6 |
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 | ||
598 | cfg.http_proxy = os.getenv("http_proxy") | 598 | cfg.http_proxy = os.getenv("http_proxy") |
599 | cfg.https_proxy = os.getenv("https_proxy") | 599 | cfg.https_proxy = os.getenv("https_proxy") |
600 | cfg.no_proxy = os.getenv("no_proxy") | ||
601 | |||
602 | -- make sure that no_proxy is not 'alone' | ||
603 | if cfg.no_proxy and not (cfg.https_proxy or cfg.http_proxy) then | ||
604 | cfg.no_proxy = nil | ||
605 | end | ||
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. |