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