If a region address is resolveable to a single address, resolve it on
startup and use that address This change facilitates running opensim within containers and VMs where the external address isn't that of the VM/container but that of the host.melanie
parent
5b7986e6be
commit
ba61b64c42
|
@ -708,7 +708,11 @@ namespace OpenSim.Framework
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
m_externalHostName = externalName;
|
IPAddress[] addrs = Dns.GetHostAddresses(externalName);
|
||||||
|
if (addrs.Length != 1) // If it is ambiguous or not resolveable, use it literally
|
||||||
|
m_externalHostName = externalName;
|
||||||
|
else
|
||||||
|
m_externalHostName = addrs[0].ToString();
|
||||||
}
|
}
|
||||||
|
|
||||||
// RegionType
|
// RegionType
|
||||||
|
|
Loading…
Reference in New Issue