feat: relay several servers, registered through the control API

This commit is contained in:
rmanach
2026-10-01 13:32:45 +02:00
parent af2dc3af53
commit 6b2b137c1d
18 changed files with 1496 additions and 376 deletions
+2 -1
View File
@@ -9,13 +9,14 @@ participant "ET server" as et
actor "Player\n203.0.113.7" as player
note over admin, et : the ET server shows the player as <front-wg>:51234
note over admin, control : every call carries the key the server registered with
admin -> control : GET /sessions
control --> admin : [{client: 203.0.113.7:27960, port: 51234}]
note right of admin : port 51234 = 203.0.113.7
== Ban ==
admin -> control : PUT /bans/203.0.113.7\n{reason, minutes}
control -> control : bans.json (atomic write)\ncut 203.0.113.7's sessions
control -> control : bans-<port>.json (atomic write)\ncut 203.0.113.7's sessions
player -> relay : game packets
relay -> relay : banned: dropped
note over et : no packet: times the player out