Skip to content

Commit

Permalink
Fix: stats were tracking "direct-ipv6" connections wrong (#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
TrueBrain authored Aug 18, 2021
1 parent 7bcea73 commit 8a5793b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion game_coordinator/application/helpers/token_connect.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ async def connect(self):
self._connect_methods = asyncio.Queue()
for direct_ip in self._server.direct_ips:
server_ip, _, server_port = direct_ip.rpartition(":")
ip_type = "ipv6" if server_ip == "[" else "ipv4"
ip_type = "ipv6" if server_ip.startswith("[") else "ipv4"
self._connect_methods.put_nowait(
(f"direct-{ip_type}", lambda: self._connect_direct_connect(server_ip, int(server_port)))
)
Expand Down

0 comments on commit 8a5793b

Please sign in to comment.