Skip to content

[Bug] web_get.sh 无法正常更新配置 #1228

@zzj0311

Description

@zzj0311

Verify steps

  • 我已经在 Issue Tracker 中找过我要提出的问题 I have searched on the issue tracker for a related issue.
  • 我已经使用公测版本测试过,问题依旧存在 I have tested using the test mod, and the issue still exists.
  • 我已经仔细看过 常见问题 并无法自行解决问题

Description

本地wget 版本信息:

wget --version
GNU Wget 1.20.3 built on linux-gnu.

似乎是当前wget版本不支持类似 --user-agent "\"xxxxx\""的ua导致的,去除$agent / 修改web_get.sh 可以正常工作

if [ -n "$6" ]; then
    wget -Y on --user-agent "$6" $progress $redirect $certificate --timeout=10 -O "$1" "$url" && return 0 #成功则退出否则重试
    wget -Y off --user-agent "$6" $progress $redirect $certificate --timeout=10 -O "$1" "$2"
else
    wget -Y on $progress $redirect $certificate --timeout=10 -O "$1" "$url" && return 0 #成功则退出否则重试
    wget -Y off $progress $redirect $certificate --timeout=10 -O "$1" "$2"
fi

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions