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

0.9.0版本的clash订阅链接转换出现400错误 #740

Open
2 tasks done
hudingwen opened this issue Apr 8, 2024 · 6 comments
Open
2 tasks done

0.9.0版本的clash订阅链接转换出现400错误 #740

hudingwen opened this issue Apr 8, 2024 · 6 comments

Comments

@hudingwen
Copy link

确认版本最新

  • 我已经确认在最新Action编译的版本中复现

检索issue

  • 我已经确认之前没有issue涉及此BUG

subconverter版本

0.9.0

转换过程

https://转换地址/sub?target=clash&insert=false&url=普通订阅链接

转换设置

普通订阅链接的内容每行都是节点,然后整体返回base64编码到sub进行转换

复现步骤

0.8.1同样链接不会出现400的http代码

期望结果

dns:
enable: true
ipv6: true
enhanced-mode: fake-ip
fake-ip-filter:
- ".lan"
- "
.cn"
- "*.qq.com"
default-nameserver:
- 1.1.1.1
- 8.8.8.8
- 223.5.5.5
- 114.114.114.114
nameserver:
- https://doh.pub/dns-query
- https://dns.alidns.com/dns-query
- https://doh.360.cn/dns-query
- 114.114.114.114
- 223.5.5.5
fallback:
- https://cloudflare-dns.com/dns-query
- https://dns.google/dns-query
fallback-filter:
geoip: true
geoip-code: CN
geosite:
- gfw
ipcidr:
- 240.0.0.0/4
domain:
- +.google.com
- +.facebook.com
- +.youtube.com
proxies:
节点列表........

实际结果

400

错误信息

400网页代码错误
@leic4u
Copy link

leic4u commented Apr 8, 2024

不是 clash 订阅的问题,我转换成其他格式也是报 400,感觉是发行版的问题。我是用的 docker 部署,镜像是 tindy2013/subconverter

不知道是不是这个版本加了什么新的请求参数没填导致的。

@tindy2013
Copy link
Owner

请确认链接中的 url 是否已通过 URL Encode 处理,从该版本开始若请求 path 中带有多个 ? 时,新的 HTTP 服务器将提示错误

@hudingwen
Copy link
Author

感觉可以做一下兼容处理呢
下发的地址都是这样的,普通订阅链接中只有一个?
https://转换地址/sub?target=clash&insert=false&url=https://普通订阅地址/api/clash?id=123123

@leic4u
Copy link

leic4u commented Apr 9, 2024

破案了,URL Encode 之后可以正常转换了。

@hudingwen
Copy link
Author

主要是下发给用户的地址不好通知挨个修改 不然一旦更新最新版本他们就拉去不到最新的了
9BEA0E5A

@hudingwen
Copy link
Author

image
应该是改这儿吧 只是C++有点看不懂
9BF853FA

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

3 participants