Xray_onekey icon indicating copy to clipboard operation
Xray_onekey copied to clipboard

为脚本添加proxy选项

Open tlsalex opened this issue 1 year ago • 1 comments

脚本里用了一堆 wget, 都是get 墙外的资源,运行脚本往往卡在wget 或curl , 在墙外是没有问题的,可能会有人说为啥要在墙内运行这脚本 -- 各人有各自的想法。

就类似于xray里提供的proxy

echo '  install:'
  echo '    --version                 Install the specified version of Xray, e.g., --version v1.0.0'
  echo '    -f, --force               Force install even though the versions are same'
  echo '    --beta                    Install the pre-release version if it is exist'
  echo '    -l, --local               Install Xray from a local file'
  echo '    -p, --proxy               Download through a proxy server, e.g., -p http://127.0.0.1:8118 or -p socks5://127.0.0.1:1080'

tlsalex avatar Jul 04 '22 15:07 tlsalex

目前我用了这个 /etc/wgetrc

tlsalex avatar Jul 04 '22 15:07 tlsalex