summaryrefslogtreecommitdiff
path: root/xmake/modules/net/proxy.lua
diff options
context:
space:
mode:
authorKnightJun <[email protected]>2021-03-17 20:30:00 +0800
committerKnightJun <[email protected]>2021-03-18 09:06:40 +0800
commitaa63ead144c15338bb58be18a6e28b027f82689d (patch)
treef14a912d48a6594329b947b1de27790b053f8b56 /xmake/modules/net/proxy.lua
parent82b6c00487a3119906329e61513981dfa9a36297 (diff)
If pac file not exist, and there are no hosts, then the proxy will take effect globally.
Diffstat (limited to 'xmake/modules/net/proxy.lua')
-rw-r--r--xmake/modules/net/proxy.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/xmake/modules/net/proxy.lua b/xmake/modules/net/proxy.lua
index 0f358172c..5f093b9c5 100644
--- a/xmake/modules/net/proxy.lua
+++ b/xmake/modules/net/proxy.lua
@@ -88,6 +88,9 @@ function get(url)
if proxy_pac and proxy_pac(url, host) then
return global.get("proxy")
end
+ if not proxy_pac and not proxy_hosts then
+ return global.get("proxy")
+ end
return
end