Skip to content

Commit 0d92b67

Browse files
authored
fix: add base64 decoding for VLESS host in ConvertsV2Ray function (#2125)
1 parent 241ae92 commit 0d92b67

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

common/convert/converter.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,9 @@ func ConvertsV2Ray(buf []byte) ([]map[string]any, error) {
208208
if err != nil {
209209
continue
210210
}
211+
if decodedHost, err := tryDecodeBase64([]byte(urlVLess.Host)); err == nil {
212+
urlVLess.Host = string(decodedHost)
213+
}
211214
query := urlVLess.Query()
212215
vless := make(map[string]any, 20)
213216
err = handleVShareLink(names, urlVLess, scheme, vless)

0 commit comments

Comments
 (0)