trojan-gfw / trojan

An unidentifiable mechanism that helps you bypass GFW.
https://trojan-gfw.github.io/trojan/
GNU General Public License v3.0
18.93k stars 3.04k forks source link

[BUG] URL scheme 建议 #334

Closed Scyllaly closed 4 years ago

Scyllaly commented 4 years ago

翻了 trojan-url 项目才找到 了 URL Scheme,发现并不支持备注功能,可否 改进URL-SCHME

现有的为:trojan://password@remote_host:remote_port

建议:可否改进并标准化为: trojan://password@remote_host:remote_port#base64(remarks) 主要目的是为了增加一个节点备注功能

free798 commented 4 years ago

胖虎,怎么跑到trojan这里来了

Scyllaly commented 4 years ago

@free798 我在新面板里适配Trojan,结果发现Trojan 的 URL Scheme 做订阅比较麻烦,我发现没有办法做到用户识别,如果要做的话,只能把UUID 填入到 password 里,通过password 来 识别用户身份。观察到 shadowrocket 的 trojan url scheme 尾部是带有 #xxx 作为节点备注的。所以特地来请教一下作者,是否要有考虑要完善一下 trojan 的 url scheme...

fefz commented 4 years ago

fuck off

ghost commented 4 years ago

@ssrpanel if you want to improve the url , please do it yourself instead of ask others do it for you !

dzxx36gyy commented 4 years ago

I think need to consider use base64 for password to avoid "@" appear in password which cloud disturb the identify of the client.

GreaterFire commented 4 years ago

@dzxx36gyy @ is escaped

GreaterFire commented 4 years ago

@dzxx36gyy @ is escaped

dzxx36gyy commented 4 years ago

@dzxx36gyy @ is escaped

Yes, i think this improve is needed.

GreaterFire commented 4 years ago

@dzxx36gyy No

dzxx36gyy commented 4 years ago

Okay...

GreaterFire commented 4 years ago

@dzxx36gyy https://github.com/trojan-gfw/trojan-url/blob/master/README.md

PLEASE. Read the whole spec again to see how illegal characters are handled.

GreaterFire commented 4 years ago

@ssrpanel Our URL scheme conforms to the definition of a URL: to and only to locate the resource. We'll not put any irrelevant information not used to locate a resource, such as an alias (or remark, as you suggested) of the server, in our URL scheme.

dzxx36gyy commented 4 years ago

Find trojan's solution of the illegal characters, my fault.