1
0
mirror of https://github.com/MetaCubeX/mihomo.git synced 2025-07-18 17:08:06 +08:00

fix: add base64 decoding for VLESS host in ConvertsV2Ray function (#2125)

This commit is contained in:
JianGuo Wang
2025-06-27 16:56:31 +08:00
committed by GitHub
parent 241ae92bce
commit 0d92b6724b

View File

@ -208,6 +208,9 @@ func ConvertsV2Ray(buf []byte) ([]map[string]any, error) {
if err != nil {
continue
}
if decodedHost, err := tryDecodeBase64([]byte(urlVLess.Host)); err == nil {
urlVLess.Host = string(decodedHost)
}
query := urlVLess.Query()
vless := make(map[string]any, 20)
err = handleVShareLink(names, urlVLess, scheme, vless)