Fixed the bug that sent a region port as the CAPS url, instead of sending the httpListener port.

afrisby
MW 2007-08-27 16:21:16 +00:00
parent ac0d58fd33
commit a45c4626fe
2 changed files with 9 additions and 1 deletions

View File

@ -455,6 +455,9 @@ namespace OpenSim
}
break;
case "set-time":
break;
case "quit":
case "shutdown":
Shutdown();

View File

@ -951,7 +951,7 @@ namespace OpenSim.Region.Environment.Scenes
if (agent.CapsPath != "")
{
//Console.WriteLine("new user, so creating caps handler for it");
Caps cap = new Caps(commsManager.AssetCache, httpListener, m_regInfo.ExternalHostName, m_regInfo.ExternalEndPoint.Port, agent.CapsPath, agent.AgentID);
Caps cap = new Caps(commsManager.AssetCache, httpListener, m_regInfo.ExternalHostName, httpListener.Port, agent.CapsPath, agent.AgentID);
Util.SetCapsURL(agent.AgentID, "http://" + m_regInfo.ExternalHostName + ":" + httpListener.Port.ToString() + "/CAPS/" + agent.CapsPath + "0000/");
cap.RegisterHandlers();
cap.AddNewInventoryItem = this.AddInventoryItem;
@ -1093,6 +1093,11 @@ namespace OpenSim.Region.Environment.Scenes
#endregion
public void SetTimePhase(int phase)
{
m_timePhase = phase;
}
public void SendUrlToUser(LLUUID avatarID, string objectname, LLUUID objectID, LLUUID ownerID, bool groupOwned, string message, string url)
{
if (Avatars.ContainsKey(avatarID))