Skip to content

Tak Tunel Status in to the consideration during the connection - #80

Merged
jacobtread merged 3 commits into
PocketRelay:masterfrom
GamerClassN7:master
Nov 9, 2026
Merged

jacobtread merged 3 commits into
PocketRelay:masterfrom
GamerClassN7:master

Conversation

@GamerClassN7

Copy link
Copy Markdown
Contributor

Players without a connected tunnel can no longer join games that require one. Game::requires_tunnel and is_tunnel_ready mirror the existing TunnelConfig logic (Always, Disabled, Stricter). handle_join_game rejects such players, and handle_start_matchmaking queues them instead of joining directly. The matchmaking queue now keeps tunnel-less players queued until their tunnel is connected. Public WAN address detection now tries ifconfig.me first and falls back to Cloudflare, ipify and icanhazip. I also added TunnelService::has_tunnel.

Added mapping from AssociationId to game pool slot, allowing tracking of client slots even without an active tunnel.
Resolved conflicts in matchmaking.rs, tunnel/mappings.rs and tunnel/mod.rs, keeping the tunnel readiness checks on top of upstream's tunnel changes.
@jacobtread
jacobtread merged commit aff5768 into PocketRelay:master Nov 9, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants