Commit Graph
6 Commits
Author SHA1 Message Date
FangkuaiYa 91ac52626b Add rate limiting 2026-10-01 00:00:15 +08:00
linmeideli f8eeeaae8b Enhanced Ban 2026-08-18 00:11:41 +08:00
FangkuaiYa ca80b42b3f ▎ Dynamic UDP port allocation for TCP/UDP identity matching
▎
  ▎ On HTTP authentication (POST /api/user), the server allocates a unique UDP port from a configurable pool
  ▎ (DeltaPortStart–DeltaPortEnd). The port acts as a nonce — when the client connects via UDP to that specific port,
  ▎ the server matches the connection to the authenticated PUID and FriendCode. This replaces unreliable IP-based
  ▎ matching, especially for players behind NAT/CGNAT.
  ▎
  ▎ - PortPoolService — thread-safe port pool with 5-minute auto-recycle if no connection arrives
  ▎ - IDeltaListenerManager — starts/stops UDP listeners on allocated ports (implemented by Matchmaker)
  ▎ - IFirewallService — UFW / firewalld / noop backends that automatically open/close firewall rules for allocated
  ▎ ports
  ▎ - Falls back to IP-based matching when the pool is exhausted or the feature is disabled (DeltaPortStart: 0)
  ▎ - TokenController returns both Port and Hash (matchmakerToken) to the client in the auth response
2026-06-28 14:51:39 +08:00
linmeideli aa530232e4 Langauge fix & Docker 2026-05-23 17:20:41 +08:00
linmeideli 3fbb92d260 Host Only Mod Command Support
When I was testing TONX, I found this issue
2026-05-22 22:07:58 +08:00
linmeideli 39da783fe0 Empostor renamed 2026-05-22 20:19:49 +08:00