diff options
| author | ruki <[email protected]> | 2020-06-24 00:40:19 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2020-06-23 22:01:57 +0800 |
| commit | 18bded45c229f5580c13fc8b4afc5edb6f18819a (patch) | |
| tree | 52b63db3274349f9a41872414208c7c30058cfd7 /xmake/modules/devel/git/clone.lua | |
| parent | 39e0626b0879f882812a178519b0a0998411866e (diff) | |
improve proxy
Diffstat (limited to 'xmake/modules/devel/git/clone.lua')
| -rw-r--r-- | xmake/modules/devel/git/clone.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/xmake/modules/devel/git/clone.lua b/xmake/modules/devel/git/clone.lua index a2fb554fb..ef3aa769b 100644 --- a/xmake/modules/devel/git/clone.lua +++ b/xmake/modules/devel/git/clone.lua @@ -20,8 +20,8 @@ -- imports import("core.base.option") -import("core.base.global") import("lib.detect.find_tool") +import("net.proxy") -- clone url -- @@ -78,9 +78,9 @@ function main(url, opt) -- use proxy? local envs - local proxy = global.get("proxy") - if proxy then - envs = {ALL_PROXY = proxy} + local proxy_conf = proxy.get(url) + if proxy_conf then + envs = {ALL_PROXY = proxy_conf} end -- clone it |
