mirror of
https://github.com/opensim/opensim.git
synced 2026-08-11 20:05:33 +08:00
more on GridInfo, fix HasHGConfig
This commit is contained in:
@@ -198,13 +198,16 @@ namespace OpenSim.Framework
|
||||
if (string.IsNullOrEmpty(gatekeeper))
|
||||
{
|
||||
m_hasHGconfig = false;
|
||||
if(!string.IsNullOrEmpty(defaultHost))
|
||||
if (!string.IsNullOrEmpty(defaultHost))
|
||||
m_gateKeeperURL = new OSHostURL(defaultHost, true);
|
||||
}
|
||||
else
|
||||
{
|
||||
m_gateKeeperURL = new OSHostURL(gatekeeper, true);
|
||||
m_hasHGconfig = true;
|
||||
}
|
||||
|
||||
if(m_gateKeeperURL.URLType == UriHostNameType.Unknown)
|
||||
if (m_gateKeeperURL.URLType == UriHostNameType.Unknown)
|
||||
throw new Exception(String.Format("could not find gatekeeper URL"));
|
||||
if (m_gateKeeperURL.IP == null)
|
||||
throw new Exception(String.Format("could not resolve gatekeeper hostname"));
|
||||
|
||||
@@ -97,6 +97,9 @@ namespace OpenSim.Services.GridService
|
||||
m_MapTileDirectory = gridConfig.GetString("MapTileDirectory", "maptiles");
|
||||
|
||||
m_ThisGridInfo = new GridInfo(config);
|
||||
if(!m_ThisGridInfo.HasHGConfig)
|
||||
throw new Exception("missing HyperGrid configuration");
|
||||
|
||||
m_log.DebugFormat("[HYPERGRID LINKER]: Local Gatekeeper: {0}", m_ThisGridInfo.GateKeeperURL);
|
||||
|
||||
m_GatekeeperConnector = new GatekeeperServiceConnector(m_AssetService);
|
||||
|
||||
Reference in New Issue
Block a user