Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/MHSanaei/3x-ui.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sub/subJsonService.go')
-rw-r--r--sub/subJsonService.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/sub/subJsonService.go b/sub/subJsonService.go
index cbda594a..d1b5baaa 100644
--- a/sub/subJsonService.go
+++ b/sub/subJsonService.go
@@ -268,13 +268,13 @@ func (s *SubJsonService) realityData(rData map[string]interface{}) map[string]in
rltyData["spiderX"] = "/" + random.Seq(15)
shortIds, ok := rData["shortIds"].([]interface{})
if ok && len(shortIds) > 0 {
- rltyData["shortId"] = shortIds[random.Num(len(shortIds))].(string)
+ rltyData["shortId"] = shortIds
} else {
rltyData["shortId"] = ""
}
serverNames, ok := rData["serverNames"].([]interface{})
if ok && len(serverNames) > 0 {
- rltyData["serverName"] = serverNames[random.Num(len(serverNames))].(string)
+ rltyData["serverName"] = serverNames
} else {
rltyData["serverName"] = ""
}