diff options
| author | ruki <[email protected]> | 2025-01-16 22:09:33 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-01-16 22:09:33 +0800 |
| commit | 094dad87ea83ba581f320be63552bc7930a1f554 (patch) | |
| tree | edfb88e3c60d6c28dbbae4a7a031914c9095ad04 /xmake/scripts/pac/github_mirror.lua | |
| parent | aafb83087411724d10956ead6c68f0f95ddfe1ed (diff) | |
| parent | 4c6304a407e4a406d9fc52a1f988b548dd56c209 (diff) | |
Merge pull request #6085 from star-hengxing/proxy
Remove invalid proxy url
Diffstat (limited to 'xmake/scripts/pac/github_mirror.lua')
| -rw-r--r-- | xmake/scripts/pac/github_mirror.lua | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/xmake/scripts/pac/github_mirror.lua b/xmake/scripts/pac/github_mirror.lua deleted file mode 100644 index 73c928c16..000000000 --- a/xmake/scripts/pac/github_mirror.lua +++ /dev/null @@ -1,12 +0,0 @@ -import("net.fasturl") - -function mirror(url) - local configs = {} - local proxyurls = {"hub.nuaa.cf"} - fasturl.add(proxyurls) - proxyurls = fasturl.sort(proxyurls) - if #proxyurls > 0 then - return url:replace("/github.com/", "/" .. proxyurls[1] .. "/", {plain = true}) - end -end - |
