fix vmess remark #198
This commit is contained in:
@@ -42,6 +42,9 @@ func (s *LinkService) GetLinks(linkJson *json.RawMessage, types string, clientIn
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (s *LinkService) addClientInfo(uri string, clientInfo string) string {
|
func (s *LinkService) addClientInfo(uri string, clientInfo string) string {
|
||||||
|
if len(clientInfo) == 0 {
|
||||||
|
return uri
|
||||||
|
}
|
||||||
protocol := strings.Split(uri, "://")
|
protocol := strings.Split(uri, "://")
|
||||||
if len(protocol) < 2 {
|
if len(protocol) < 2 {
|
||||||
return uri
|
return uri
|
||||||
|
|||||||
@@ -456,7 +456,7 @@ export namespace LinkUtil {
|
|||||||
if (a.insecure) {
|
if (a.insecure) {
|
||||||
newParams.allowInsecure = 1
|
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)))
|
links.push('vmess://' + utf8ToBase64(JSON.stringify(newParams, null, 2)))
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user