use RegionInfo.ServerURI to report region url on datasnapshot

httptests
UbitUmarov 2018-05-26 05:43:55 +01:00
parent 57fb1ea9df
commit f6765b8668
1 changed files with 2 additions and 6 deletions

View File

@ -47,17 +47,13 @@ namespace OpenSim.Region.DataSnapshot
private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
private Dictionary<String, String> m_gridinfo = null;
private bool m_cacheEnabled = true;
private string m_listener_port = "9000"; //TODO: Set default port over 9000
private string m_hostname = "127.0.0.1";
#endregion
public SnapshotStore(string directory, Dictionary<String, String> gridinfo, string port, string hostname) {
public SnapshotStore(string directory, Dictionary<String, String> gridinfo) {
m_directory = directory;
m_scenes = new Dictionary<Scene, bool>();
m_providers = new List<IDataSnapshotProvider>();
m_gridinfo = gridinfo;
m_listener_port = port;
m_hostname = hostname;
if (Directory.Exists(m_directory))
{
@ -270,7 +266,7 @@ namespace OpenSim.Region.DataSnapshot
infoblock.AppendChild(infopiece);
infopiece = basedoc.CreateNode(XmlNodeType.Element, "url", "");
infopiece.InnerText = "http://" + m_hostname + ":" + m_listener_port;
infopiece.InnerText = scene.RegionInfo.ServerURI;
infoblock.AppendChild(infopiece);
infopiece = basedoc.CreateNode(XmlNodeType.Element, "name", "");