8000 refactor(alias): return URL when root has .proxy suffix by j2rong4cn · Pull Request #8357 · AlistGo/alist · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

refactor(alias): return URL when root has .proxy suffix #8357

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

j2rong4cn
Copy link
Contributor

根目录以.proxy结尾时返回代理链接
可以让crypt、mega等驱动(不返回URL的) 更好的支持并发
路径设置示例:
crypt.proxy:/crypt
mega.proxy:/mega

@xhofe xhofe requested a review from Copilot April 13, 2025 05:03
Copy link
Contributor
@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

Comments suppressed due to low confidence (2)

drivers/alias/util.go:120

  • [nitpick] Consider adding an inline comment explaining that using common.NoProxyRangeMark (-1) for Concurrency acts as a flag to disable proxy range handling.
Concurrency: common.NoProxyRangeMark,

drivers/alias/driver.go:112

  • [nitpick] Consider adding a comment explaining that the .proxy suffix forces args.Redirect to true to support concurrent downloads in proxy mode.
if strings.HasSuffix(root, ".proxy") {

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

Successfully merging this pull request may close these issues.

1 participant
0