don't save hast ip/address when host==official_network_host

This commit is contained in:
Serge Martin 2006-11-16 10:43:23 +00:00
parent ad104b19f8
commit b66128226b

View file

@ -215,7 +215,8 @@ server_type open_connection(display& disp, const std::string& original_host)
}
} while(!(data.child("join_lobby") || data.child("join_game")));
preferences::set_network_host(h);
if (h != preferences::official_network_host())
preferences::set_network_host(h);
if (data.child("join_lobby")) {
return WESNOTHD_SERVER;