From 4494ffabb6e17dc760e3be2c2e357e2fa0c2eaa6 Mon Sep 17 00:00:00 2001 From: Dmitry Zhavoronkov Date: Mon, 2 Sep 2024 17:02:15 +0700 Subject: fix TypeError: this.shortIds.split is not a function (#2507) * fix TypeError: this.shortIds.split is not a function --- sub/subJsonService.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sub') 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"] = "" } -- cgit v1.2.3