mirror of
https://github.com/opensim/opensim.git
synced 2026-07-02 00:15:45 +08:00
In an attempt to solve multihomed UDP problem I seem to have bound UDP socket to external IP instead of internal :)
This commit is contained in:
@@ -109,9 +109,9 @@ namespace OpenSim.Region.ClientStack
|
||||
protected Scene SetupScene(RegionInfo regionInfo, out UDPServer udpServer, bool m_permissions)
|
||||
{
|
||||
AgentCircuitManager circuitManager = new AgentCircuitManager();
|
||||
IPAddress listenIP;
|
||||
if (!IPAddress.TryParse(regionInfo.ExternalHostName, out listenIP))
|
||||
listenIP = IPAddress.Parse("0.0.0.0");
|
||||
IPAddress listenIP = regionInfo.InternalEndPoint.Address;
|
||||
//if (!IPAddress.TryParse(regionInfo.InternalEndPoint, out listenIP))
|
||||
// listenIP = IPAddress.Parse("0.0.0.0");
|
||||
|
||||
uint port = (uint) regionInfo.InternalEndPoint.Port;
|
||||
udpServer = new UDPServer(listenIP, ref port, regionInfo.m_allow_alternate_ports, m_assetCache, m_log, circuitManager);
|
||||
|
||||
Reference in New Issue
Block a user