fix reality sid #495

This commit is contained in:
Alireza Ahmadi
2025-05-17 16:43:28 +02:00
parent 0a08e9f834
commit 8b431f4da8
+1 -1
View File
@@ -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