feat(protocol): add gateway transport authority contracts

This commit is contained in:
sechmachine
2026-07-29 05:59:46 +07:00
parent b2c24b3fa3
commit b5558133e3
21 changed files with 1898 additions and 15 deletions
+1 -1
View File
@@ -157,7 +157,7 @@ func classifyDatagram(encoded string) string {
if raw[2] != 1 {
return "invalid:unsupported_version"
}
limits := map[byte]int{1: 1024, 2: 2048, 3: 65515}
limits := map[byte]int{1: 1024, 2: 2048, 3: 65515, 10: 1179, 11: 1179, 12: 1179}
limit, ok := limits[raw[3]]
if !ok {
return "invalid:unknown_channel"