summaryrefslogtreecommitdiff
path: root/xmake/modules/net/proxy.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2026-03-29 22:55:28 +0800
committerruki <[email protected]>2026-03-29 22:55:28 +0800
commit8841ed9f7b427896f042abcfb3537dd731f6a923 (patch)
treed2cb01d00f1873851e86199deef19dda20c43702 /xmake/modules/net/proxy.lua
parent1bccfc273af2b1d579d033324bca481e15c58653 (diff)
improve const limit codes
Diffstat (limited to 'xmake/modules/net/proxy.lua')
-rw-r--r--xmake/modules/net/proxy.lua3
1 files changed, 1 insertions, 2 deletions
diff --git a/xmake/modules/net/proxy.lua b/xmake/modules/net/proxy.lua
index 7a45da39d..a1e35977f 100644
--- a/xmake/modules/net/proxy.lua
+++ b/xmake/modules/net/proxy.lua
@@ -157,8 +157,7 @@ function config(url)
if host and proxy_hosts then
host = host:lower()
for _, proxy_host in ipairs(proxy_hosts) do
- local proxy_host = proxy_host
- proxy_host = proxy_host:lower()
+ local proxy_host = proxy_host:lower()
if host == proxy_hosts or host:match(_host_pattern(proxy_host)) then
return _global_proxy()
end