Skip to content

Commit

Permalink
feat: update github proxy address
Browse files Browse the repository at this point in the history
  • Loading branch information
fishros authored Jul 28, 2024
1 parent 7fc6e7d commit 01c5cb5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tools/tool_install_proxy_tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
wget $CLASH_SERVER -O $HOME/.config/clash/config.yaml
sed -i 's/127.0.0.1:9090/0.0.0.0:9090/g' $HOME/.config/clash/config.yaml
sed -i 's/allow-lan: false/allow-lan: true/g' $HOME/.config/clash/config.yaml
file_url="http://github.fishros.org/https://github.com/Dreamacro/maxmind-geoip/releases/download/20230912/Country.mmdb"
file_url="https://github.fishros.workers.dev/https://github.com/Dreamacro/maxmind-geoip/releases/download/20230912/Country.mmdb"
target_dir="$HOME/.config/clash/"
# 检查文件是否存在
if [ ! -e "${target_dir}Country.mmdb" ]; then
Expand Down Expand Up @@ -82,7 +82,7 @@ def __init__(self):

def install_web_tool(self,clash_home):
CmdTask('sudo apt update && sudo apt install xz-utils -y',os_command=True).run()
CmdTask('wget http://github.fishros.org/https://github.com/haishanh/yacd/releases/download/v0.3.8/yacd.tar.xz -O {}yacd.tar.xz'.format(clash_home),os_command=True).run()
CmdTask('wget https://github.fishros.workers.dev/https://github.com/haishanh/yacd/releases/download/v0.3.8/yacd.tar.xz -O {}yacd.tar.xz'.format(clash_home),os_command=True).run()
CmdTask('cd {} && tar -xf yacd.tar.xz'.format(clash_home),os_command=True).run()

def install_proxy_tool(self):
Expand All @@ -92,7 +92,7 @@ def install_proxy_tool(self):
clash_home = "{}.clash/".format(user_home)
CmdTask("mkdir -p {}".format(clash_home),os_command=True).run()
if osarch=='amd64':
CmdTask('sudo wget http://github.fishros.org/https://raw.githubusercontent.com/tuomasiy/mlash/main/clash -O {}clash'.format(clash_home),os_command=True).run()
CmdTask('sudo wget https://github.fishros.workers.dev/https://raw.githubusercontent.com/tuomasiy/mlash/main/clash -O {}clash'.format(clash_home),os_command=True).run()
elif osarch=='arm64':
CmdTask('sudo wget https://down.clash.la/Clash/Core/Premium/clash-linux-arm64-latest.gz -O {}clash.gz'.format(clash_home),os_command=True).run()
else:
Expand Down

0 comments on commit 01c5cb5

Please sign in to comment.