fix: resolve Vless+Reality handshank failure in singbox core

This commit is contained in:
xboard
2026-03-16 07:29:22 +08:00
parent 0975b45404
commit 7a37c15fdc
5 changed files with 233 additions and 35 deletions
+2 -3
View File
@@ -217,9 +217,8 @@ func TestBuildInbound_VLESS_Reality_ShortIDArray(t *testing.T) {
},
}
inbound := buildInbound(nc, testUsers, "", "")
tls := inbound["tls"].(M)
reality := tls["reality"].(M)
ids := reality["short_id"].([]interface{})
reality := inbound["tls"].(M)["reality"].(M)
ids := reality["short_id"].([]string)
if len(ids) != 2 {
t.Errorf("short_id: got %d entries, want 2", len(ids))
}