AlistGo / alist

🗂️A file list/WebDAV program that supports multiple storages, powered by Gin and Solidjs. / 一个支持多存储的文件列表/WebDAV程序,使用 Gin 和 Solidjs。
https://alist.nn.ci
GNU Affero General Public License v3.0
43.82k stars 5.68k forks source link

Sometimes BaiduNetdisk assigns an IPv6 download link in IPv4 only network #5443

Closed 2ndMessiah closed 10 months ago

2ndMessiah commented 1 year ago

Please make sure of the following things

AList Version / AList 版本

v3.28.0

Driver used / 使用的存储驱动

BaiduNetdisk

Describe the bug / 问题描述

Hi~! Appreciate the contribution to the development of the prestigious Alist !!

I'm using BaiduNetdisk and sometimes it responds with an ipv6 link and my network is ipv4 only..

{"code":500,"message":"Get \"http://[********************************6]/b/nd6.baidupcs.com/file/[omitted]by=themis\": dial tcp [***************************]:80: connect: cannot assign requested address","data":null}

Any suggestions for mitigating this?

An option of ipv4/6 first, or an ipv4/6 fail/retry mechanism would be nice.

Waiting for a reply. Thx again!

Reproduction / 复现链接

http://[********************************6]/b/nd6.baidupcs.com/file/[omitted]by=themis\": dial tcp [***]:80

Config / 配置

version: '3.3' services: alist: restart: always volumes:

Logs / 日志

No response

welcome[bot] commented 1 year ago

Thanks for opening your first issue here! Be sure to follow the issue template!

xhofe commented 1 year ago

Provide a log file pls.

2ndMessiah commented 1 year ago

Provide a log file pls.

Thx for the reply, xhofe!!

Here you are: log.log

xhofe commented 1 year ago

The ipv6 address is returned by Baidu Netdisk. Currently, we cannot control the returned address through the document https://pan.baidu.com/union/doc/pkuo3snyp This may require consulting official technical support

stale[bot] commented 11 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] commented 10 months ago

Hello @, this issue was closed due to inactive more than 52 days. You can reopen or recreate it if you think it should continue. Thank you for your contributions again.