mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2026-03-06 06:07:30 +00:00
fix: add base64 decoding for VLESS host in ConvertsV2Ray function (#2125)
This commit is contained in:
@@ -208,6 +208,9 @@ func ConvertsV2Ray(buf []byte) ([]map[string]any, error) {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
if decodedHost, err := tryDecodeBase64([]byte(urlVLess.Host)); err == nil {
|
||||||
|
urlVLess.Host = string(decodedHost)
|
||||||
|
}
|
||||||
query := urlVLess.Query()
|
query := urlVLess.Query()
|
||||||
vless := make(map[string]any, 20)
|
vless := make(map[string]any, 20)
|
||||||
err = handleVShareLink(names, urlVLess, scheme, vless)
|
err = handleVShareLink(names, urlVLess, scheme, vless)
|
||||||
|
|||||||
Reference in New Issue
Block a user