mirror of
https://github.com/opensim/opensim.git
synced 2026-08-07 09:45:47 +08:00
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.
This commit is contained in:
@@ -708,7 +708,11 @@ namespace OpenSim.Framework
|
||||
}
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user