Skip to content

Commit

Permalink
fix vmess remark #198
Browse files Browse the repository at this point in the history
  • Loading branch information
alireza0 committed Jul 23, 2024
1 parent 7b58ede commit 869c518
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions backend/sub/linkService.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/plugins/link.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)))
})
}
Expand Down

0 comments on commit 869c518

Please sign in to comment.