Qingluan / merkur

golang proxy.Dialer lib for http or raw tcp , / socks5 / ss / ssr / vmess / ordered url / and Proxy pool
GNU General Public License v3.0
8 stars 2 forks source link

Got "[ws] error in ws handshake parseFirstLine" when using Vmess #1

Open OhYee opened 3 years ago

OhYee commented 3 years ago

And V2RayN export vmess:// with aid and port fields with type string

https://github.com/2dust/v2rayN/blob/57299cf18253d2f4f75e41e9ee3565d7cf2195b4/v2rayN/v2rayN/Handler/ConfigHandler.cs#L381-L383

Maybe it could be better to use this? https://github.com/v2fly/vmessping/blob/b2fa91853153a9d4cad2871169e127a0b561e485/vmess/vmess.go#L282

Qingluan commented 3 years ago

And V2RayN export vmess:// with aid and port fields with type string

https://github.com/2dust/v2rayN/blob/57299cf18253d2f4f75e41e9ee3565d7cf2195b4/v2rayN/v2rayN/Handler/ConfigHandler.cs#L381-L383

Maybe it could be better to use this? https://github.com/v2fly/vmessping/blob/b2fa91853153a9d4cad2871169e127a0b561e485/vmess/vmess.go#L282

thanks, but "aid" and "port" can be parsed already. https://github.com/Qingluan/merkur/blob/1128ab54490d582a0a52a90ab5233c5b025f9b0c/config/config.go#L147-163