From 4c6304a407e4a406d9fc52a1f988b548dd56c209 Mon Sep 17 00:00:00 2001 From: star9029 Date: Thu, 16 Jan 2025 22:04:41 +0800 Subject: Remove pac dir --- xmake/scripts/pac/github_mirror.lua | 12 ------------ 1 file changed, 12 deletions(-) delete mode 100644 xmake/scripts/pac/github_mirror.lua (limited to 'xmake/scripts/pac/github_mirror.lua') diff --git a/xmake/scripts/pac/github_mirror.lua b/xmake/scripts/pac/github_mirror.lua deleted file mode 100644 index 5a6bc2e1a..000000000 --- a/xmake/scripts/pac/github_mirror.lua +++ /dev/null @@ -1,12 +0,0 @@ -import("net.fasturl") - -function mirror(url) - local configs = {} - local proxyurls = {} - fasturl.add(proxyurls) - proxyurls = fasturl.sort(proxyurls) - if #proxyurls > 0 then - return url:replace("/github.com/", "/" .. proxyurls[1] .. "/", {plain = true}) - end -end - -- cgit v1.3.1