From 8b431f4da862688345c7da901f74b90ba13c444e Mon Sep 17 00:00:00 2001 From: Alireza Ahmadi Date: Sat, 17 May 2025 16:43:28 +0200 Subject: [PATCH] fix reality sid #495 --- util/genLink.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/genLink.go b/util/genLink.go index 6fdb737..3cb4489 100644 --- a/util/genLink.go +++ b/util/genLink.go @@ -95,7 +95,7 @@ func prepareTls(t *model.Tls) map[string]interface{} { reality := v.(map[string]interface{}) clientReality := oTls["reality"].(map[string]interface{}) clientReality["enabled"] = reality["enabled"] - if short_ids, hasSIds := reality["short_ids"].([]interface{}); hasSIds && len(short_ids) > 0 { + if short_ids, hasSIds := reality["short_id"].([]interface{}); hasSIds && len(short_ids) > 0 { clientReality["short_id"] = short_ids[common.RandomInt(len(short_ids))] } oTls["reality"] = clientReality