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:
authormhsanaei <ho3ein.sanaei@gmail.com>2024-09-09 10:46:39 +0300
committermhsanaei <ho3ein.sanaei@gmail.com>2024-09-09 10:46:39 +0300
commit58c721e7d20bb712af0d13dd2334c39fc10dbab0 (patch)
treeaa2b6706daa54301ff028a07d47ac2ed0c871eee /sub/subJsonService.go
parentb4baf35ed8a14b58f9db6dde6a33b36d6095bcc1 (diff)
quic removed
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 d1b5baaa..cbda594a 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
+ rltyData["shortId"] = shortIds[random.Num(len(shortIds))].(string)
} else {
rltyData["shortId"] = ""
}
serverNames, ok := rData["serverNames"].([]interface{})
if ok && len(serverNames) > 0 {
- rltyData["serverName"] = serverNames
+ rltyData["serverName"] = serverNames[random.Num(len(serverNames))].(string)
} else {
rltyData["serverName"] = ""
}