Skip to content

Commit

Permalink
Updated unique ID store to cope with DNS name change
Browse files Browse the repository at this point in the history
  • Loading branch information
scara committed Jul 30, 2014
1 parent 6140b2f commit a46f7e4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions scorched/src/client/client/UniqueIdStore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,11 @@ bool UniqueIdStore::saveUniqueId(unsigned int ip, const char *id,
// AutoDetect server no unique id saved
if (0 == strcmp(published, "AutoDetect")) return true;

if (0 == strcmp(published, "scorched3d.game-host.org"))
{
published = "game-host.scorched3d.co.uk";
}

// Check the published ip matches the actual server ip
IPaddress address;
if (SDLNet_ResolveHost(&address, (char *) published, 0) != 0)
Expand Down

0 comments on commit a46f7e4

Please sign in to comment.