diff options
| author | ruki <[email protected]> | 2026-03-30 21:58:26 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2026-03-30 21:58:26 +0800 |
| commit | 4222dfcc1e73ec1f6fbe399ff1de6fb52e17af1e (patch) | |
| tree | b46f1bda336f1a56a2804a06108649f032eb4a00 /xmake/modules/net/proxy.lua | |
| parent | 01c2251b193482d9f308c92c27bb113c77dd60b4 (diff) | |
| parent | 53748c3a92f9f6c11453ed2f3a9af761275e732a (diff) | |
Merge pull request #7440 from xmake-io/comments
Improve comments
Diffstat (limited to 'xmake/modules/net/proxy.lua')
| -rw-r--r-- | xmake/modules/net/proxy.lua | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/xmake/modules/net/proxy.lua b/xmake/modules/net/proxy.lua index 812fdc536..1ab9779e6 100644 --- a/xmake/modules/net/proxy.lua +++ b/xmake/modules/net/proxy.lua @@ -93,7 +93,11 @@ function _is_callable(func) end end --- get proxy mirror url +-- get proxy mirror url for the given url +-- +-- @param url the original url +-- @return the mirrored url +-- function mirror(url) local proxy_pac = _proxy_pac() if proxy_pac and proxy_pac.mirror then @@ -142,8 +146,10 @@ function _global_proxy() return proxy end --- get proxy configuration from the given url, [protocol://]host[:port] +-- get proxy configuration for the given url -- +-- @param url the target url +-- @return the proxy string, e.g. "socks5://127.0.0.1:1080", or nil -- @see https://github.com/xmake-io/xmake/issues/854 -- function config(url) |
