diff options
| author | ruki <[email protected]> | 2021-04-23 22:52:16 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2021-04-23 22:52:16 +0800 |
| commit | ef17fec2bc80c6ec4ad537e74748762d18e92606 (patch) | |
| tree | 942101eedb185802da7b29c948ed8fd14d501911 /xmake/modules/net/http | |
| parent | 99a6f5326cecd709c2927b6f50efb59a9a50c4a0 (diff) | |
improve proxy to support mirror url
Diffstat (limited to 'xmake/modules/net/http')
| -rw-r--r-- | xmake/modules/net/http/download.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/modules/net/http/download.lua b/xmake/modules/net/http/download.lua index aad644416..7a90ac8bc 100644 --- a/xmake/modules/net/http/download.lua +++ b/xmake/modules/net/http/download.lua @@ -64,7 +64,7 @@ function _curl_download(tool, url, outputfile, opt) end -- use proxy? - local proxy_conf = proxy.get(url) + local proxy_conf = proxy.config(url) if proxy_conf then table.insert(argv, "-x") table.insert(argv, proxy_conf) @@ -114,7 +114,7 @@ function _wget_download(tool, url, outputfile, opt) end -- use proxy? - local proxy_conf = proxy.get(url) + local proxy_conf = proxy.config(url) if proxy_conf then table.insert(argv, "-e") table.insert(argv, "use_proxy=yes") |
