From aa63ead144c15338bb58be18a6e28b027f82689d Mon Sep 17 00:00:00 2001 From: KnightJun Date: Wed, 17 Mar 2021 20:30:00 +0800 Subject: If pac file not exist, and there are no hosts, then the proxy will take effect globally. --- xmake/modules/net/proxy.lua | 3 +++ 1 file changed, 3 insertions(+) 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 -- cgit v1.3.1