fix vmess remark #198

This commit is contained in:
Alireza Ahmadi
2024-07-23 18:18:56 +02:00
parent 7b58edeaaf
commit 869c51885f
2 changed files with 4 additions and 1 deletions
+3
View File
@@ -42,6 +42,9 @@ func (s *LinkService) GetLinks(linkJson *json.RawMessage, types string, clientIn
}
func (s *LinkService) addClientInfo(uri string, clientInfo string) string {
if len(clientInfo) == 0 {
return uri
}
protocol := strings.Split(uri, "://")
if len(protocol) < 2 {
return uri
+1 -1
View File
@@ -456,7 +456,7 @@ export namespace LinkUtil {
if (a.insecure) {
newParams.allowInsecure = 1
}
newParams.ps = encodeURIComponent(a.remark ? inbound.tag + a.remark : inbound.tag)
newParams.ps = inbound.tag + (a.remark??'')
links.push('vmess://' + utf8ToBase64(JSON.stringify(newParams, null, 2)))
})
}