-
Notifications
You must be signed in to change notification settings - Fork 650
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
兼容包含逗号等符号的节点名 #251
Comments
好像还有一些也不能识别,我有个链接,只能识别出一个节点,同样的链接,小火煎没问题。 |
@BlackLuny 不是一个问题
可以尝试设置浏览器 UA 或者 Shadowrocket 的 UA
|
不是的,应该是解析的问题,我自己用python按照base64方法解析url的结果,解析会报错, subscription_data = 'dHJvamFuOi8vcjFXXXXXXXXX'
import base64
def decode_base64(encoded_str):
"""解码base64字符串."""
# 对于base64编码,确保字符串长度是4的倍数
padding = 4 - len(encoded_str) % 4
if padding:
encoded_str += "=" * padding
# 解码
try:
decoded_bytes = base64.b64decode(encoded_str, validate=True)
return decoded_bytes.decode('utf-8') # 假设编码为utf-8
except Exception as e:
return f"解码失败: {e}"
decoded_str = decode_base64(subscription_data)
print(decoded_str) 报错信息: Process finished with exit code 0 而且我也尝试了你的UA,均不行,另外,没有做任何其他额外的去国旗之类的操作。 |
没看懂你发 python 代码想表达什么. 可以私发我订阅链接看看 |
关闭 已加入 #312 |
a, b = http, 127.0.0.1, 80
The text was updated successfully, but these errors were encountered: