Ooops fix stun servers URIs. Thx MB
This commit is contained in:
@@ -526,7 +526,7 @@ namespace OpenSim.Framework
|
|||||||
{
|
{
|
||||||
OSHHTPHost tmp = new OSHHTPHost(stuns[i].Trim(), false);
|
OSHHTPHost tmp = new OSHHTPHost(stuns[i].Trim(), false);
|
||||||
if (tmp.IsValidHost)
|
if (tmp.IsValidHost)
|
||||||
stunsarr.Add(tmp.URI);
|
stunsarr.Add("stun:" + tmp.HostAndPort);
|
||||||
}
|
}
|
||||||
m_StunServers = stunsarr.Count > 0 ? stunsarr.ToArray() : null;
|
m_StunServers = stunsarr.Count > 0 ? stunsarr.ToArray() : null;
|
||||||
}
|
}
|
||||||
@@ -785,7 +785,7 @@ namespace OpenSim.Framework
|
|||||||
{
|
{
|
||||||
OSHHTPHost tmp = new OSHHTPHost(value[i].Trim(), false);
|
OSHHTPHost tmp = new OSHHTPHost(value[i].Trim(), false);
|
||||||
if (tmp.IsValidHost)
|
if (tmp.IsValidHost)
|
||||||
values.Add(tmp.URI);
|
values.Add("stun:" + tmp.HostAndPort);
|
||||||
}
|
}
|
||||||
m_StunServers = values.Count > 0 ? values.ToArray() : null;
|
m_StunServers = values.Count > 0 ? values.ToArray() : null;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user