Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
First time server registration ends up in multiple online servers instead of one #7828
Version of OpenTTD
Since masterserver protocol v2.
When I start a server with dualstack (IPv4 + IPv6), I expect a single masterserver registration with both IPs.
The first time, I register two servers: one for IPv4, and one for IPv6. Only when the second announcement happens, they are collapsed into a single entry.
Steps to reproduce
Start a cleanly installed OpenTTD server. Your server will briefly (well, for the next 15 minutes) show up as 2 servers on the serverlist.
What is going wrong?
When a server registers to the master server, initial he does this without a
The server runs registration async; and you can guess now what happens. On the first run, both the IPv4 and IPv6 announce with a
When the re-announcement happens, 15 minutes later, the game did settle on either one of the
Okay, the current live master_server is patched to fix this behaviour. Although it is still wrong, it is not an active bug anymore.
Fixing this properly still would be nice, of course ;)
The way it is fixed: if you don't have a