Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

兴许用 curl 拉取订阅更加兼容一些? #172

Open
melosbot opened this issue Dec 24, 2024 · 0 comments
Open

兴许用 curl 拉取订阅更加兼容一些? #172

melosbot opened this issue Dec 24, 2024 · 0 comments

Comments

@melosbot
Copy link

melosbot commented Dec 24, 2024

request="busybox wget"
request+=" --no-check-certificate"
request+=" --user-agent ${user_agent}"
request+=" -O ${file}"
request+=" ${update_url}"
echo "${yellow}${request}${normal}"

此处执行 su -c /data/adb/box/scripts/box.tool subs 拉取经过 CloudFlare 代理的订阅有一定的几率会拉不动,导致原有 config.yaml 变成 config.yaml.bak 后不产生新的 config.yaml。不知道是不是我个例,但改成如下 curl 后不再出现此类现象,也不需要借助 busybox。

  request="curl"
  request+=" --insecure"
  request+=" --user-agent ${user_agent}"
  request+=" -o ${file}"
  request+=" ${update_url}"
  echo "${yellow}${request}${normal}"
twnesss pushed a commit that referenced this issue Dec 25, 2024
…ck to wget if curl is not found. #172
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant