* Added "GetHostFromDNS" to Util to replace the various DNS resolution methods we use. Favours IPv4 addresses before IPv6 addresses to work around the Vista preference issue.

This commit is contained in:
Adam Frisby
2007-07-18 21:55:24 +00:00
parent 4c8b8d22ff
commit 11efebd29e
3 changed files with 27 additions and 2 deletions

View File

@@ -60,7 +60,7 @@ namespace OpenSim.Grid.UserServer
// Destination
Console.WriteLine("CUSTOMISERESPONSE: Region X: " + SimInfo.regionLocX + "; Region Y: " + SimInfo.regionLocY);
response.SimAddress = Dns.GetHostByName(SimInfo.serverIP).AddressList[0].ToString();
response.SimAddress = Util.GetHostFromDNS(SimInfo.serverIP).ToString();
response.SimPort = (Int32)SimInfo.serverPort;
response.RegionX = SimInfo.regionLocX;
response.RegionY = SimInfo.regionLocY;