alist icon indicating copy to clipboard operation
alist copied to clipboard

多个下载地址

Open Chu9CC opened this issue 7 months ago • 2 comments

Please make sure of the following things

  • [x] I have read the documentation.
  • [x] I'm sure there are no duplicate issues or discussions.
  • [x] I'm sure this feature is not implemented.
  • [x] I'm sure it's a reasonable and popular requirement.

Description of the feature / 需求描述

我现在是有外网和内网使用alist 但是alist的下载地址只能设置成固定的 如何才能使alist根据浏览器的host去适应下载链接呢?

Suggested solution / 实现思路

No response

Additional context / 附件

No response

Chu9CC avatar May 20 '25 09:05 Chu9CC

您提到的需求是希望 Alist 能够根据浏览器的 host 动态适应下载链接,而不是使用固定的下载地址。这是一个很有意义的功能请求,尤其是在同时使用内网和外网的情况下。

目前,Alist 的下载地址设置是固定的,无法根据浏览器的 host 动态调整。要实现这个功能,可能需要在 Alist 的代码中增加一个逻辑,用于检测请求的来源 host,并根据不同的 host 返回相应的下载链接。

如果您有兴趣,您可以在 Alist 的 GitHub 仓库中提交一个功能请求,或者如果您有开发能力,也可以尝试自己实现这个功能并提交一个 Pull Request。

如果您需要进一步的帮助或有其他问题,请随时告诉我。

🪧 Tips For further assistance, please describe your question in the comments and @petercat-assistant to start a conversation with me.

petercat-assistant[bot] avatar May 20 '25 09:05 petercat-assistant[bot]

可以改hosts,把域名指向你的本地ip,这样你外网和内网就都能用域名去下载了

pongfcnkl avatar May 22 '25 09:05 pongfcnkl