aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorUbitUmarov2019-10-06 02:21:29 +0100
committerUbitUmarov2019-10-06 02:21:29 +0100
commit03da5a9714069525ed6fe7ddf2d74e1bb61be79f (patch)
treeb2798b08368df76be18c36a6dd61c6d2cb0396ab
parentmissing file (diff)
downloadopensim-SC-03da5a9714069525ed6fe7ddf2d74e1bb61be79f.zip
opensim-SC-03da5a9714069525ed6fe7ddf2d74e1bb61be79f.tar.gz
opensim-SC-03da5a9714069525ed6fe7ddf2d74e1bb61be79f.tar.bz2
opensim-SC-03da5a9714069525ed6fe7ddf2d74e1bb61be79f.tar.xz
fix ViewerAsset external url
-rwxr-xr-xOpenSim/Region/ClientStack/Linden/Caps/GetAssetsModule.cs12
1 files changed, 5 insertions, 7 deletions
diff --git a/OpenSim/Region/ClientStack/Linden/Caps/GetAssetsModule.cs b/OpenSim/Region/ClientStack/Linden/Caps/GetAssetsModule.cs
index c071bd1..f87cfb9 100755
--- a/OpenSim/Region/ClientStack/Linden/Caps/GetAssetsModule.cs
+++ b/OpenSim/Region/ClientStack/Linden/Caps/GetAssetsModule.cs
@@ -117,7 +117,6 @@ namespace OpenSim.Region.ClientStack.Linden
117 m_GetAssetURL = config.GetString("Cap_GetAsset", string.Empty); 117 m_GetAssetURL = config.GetString("Cap_GetAsset", string.Empty);
118 if (m_GetAssetURL != string.Empty) 118 if (m_GetAssetURL != string.Empty)
119 m_Enabled = true; 119 m_Enabled = true;
120
121 } 120 }
122 121
123 public void AddRegion(Scene pScene) 122 public void AddRegion(Scene pScene)
@@ -387,6 +386,7 @@ namespace OpenSim.Region.ClientStack.Linden
387 protocol = "https"; 386 protocol = "https";
388 } 387 }
389 388
389 IExternalCapsModule handler = m_scene.RequestModuleInterface<IExternalCapsModule>();
390 string baseURL = String.Format("{0}://{1}:{2}", protocol, hostName, port); 390 string baseURL = String.Format("{0}://{1}:{2}", protocol, hostName, port);
391 391
392 if (m_GetTextureURL == "localhost") 392 if (m_GetTextureURL == "localhost")
@@ -399,7 +399,6 @@ namespace OpenSim.Region.ClientStack.Linden
399 args.Type = PollServiceEventArgs.EventType.Texture; 399 args.Type = PollServiceEventArgs.EventType.Texture;
400 MainServer.Instance.AddPollServiceHTTPHandler(capUrl, args); 400 MainServer.Instance.AddPollServiceHTTPHandler(capUrl, args);
401 401
402 IExternalCapsModule handler = m_scene.RequestModuleInterface<IExternalCapsModule>();
403 if (handler != null) 402 if (handler != null)
404 handler.RegisterExternalUserCapsHandler(agentID, caps, "GetTexture", capUrl); 403 handler.RegisterExternalUserCapsHandler(agentID, caps, "GetTexture", capUrl);
405 else 404 else
@@ -420,7 +419,6 @@ namespace OpenSim.Region.ClientStack.Linden
420 args.Type = PollServiceEventArgs.EventType.Mesh; 419 args.Type = PollServiceEventArgs.EventType.Mesh;
421 MainServer.Instance.AddPollServiceHTTPHandler(capUrl, args); 420 MainServer.Instance.AddPollServiceHTTPHandler(capUrl, args);
422 421
423 IExternalCapsModule handler = m_scene.RequestModuleInterface<IExternalCapsModule>();
424 if (handler != null) 422 if (handler != null)
425 handler.RegisterExternalUserCapsHandler(agentID, caps, "GetMesh", capUrl); 423 handler.RegisterExternalUserCapsHandler(agentID, caps, "GetMesh", capUrl);
426 else 424 else
@@ -438,7 +436,7 @@ namespace OpenSim.Region.ClientStack.Linden
438 PollServiceAssetEventArgs args = new PollServiceAssetEventArgs(capUrl, agentID, m_scene); 436 PollServiceAssetEventArgs args = new PollServiceAssetEventArgs(capUrl, agentID, m_scene);
439 args.Type = PollServiceEventArgs.EventType.Mesh2; 437 args.Type = PollServiceEventArgs.EventType.Mesh2;
440 MainServer.Instance.AddPollServiceHTTPHandler(capUrl, args); 438 MainServer.Instance.AddPollServiceHTTPHandler(capUrl, args);
441 IExternalCapsModule handler = m_scene.RequestModuleInterface<IExternalCapsModule>(); 439
442 if (handler != null) 440 if (handler != null)
443 handler.RegisterExternalUserCapsHandler(agentID, caps, "GetMesh2", capUrl); 441 handler.RegisterExternalUserCapsHandler(agentID, caps, "GetMesh2", capUrl);
444 else 442 else
@@ -448,6 +446,7 @@ namespace OpenSim.Region.ClientStack.Linden
448 else if (m_GetMesh2URL != string.Empty) 446 else if (m_GetMesh2URL != string.Empty)
449 caps.RegisterHandler("GetMesh2", m_GetMesh2URL); 447 caps.RegisterHandler("GetMesh2", m_GetMesh2URL);
450 448
449
451 //ViewerAsset 450 //ViewerAsset
452 if (m_GetAssetURL == "localhost") 451 if (m_GetAssetURL == "localhost")
453 { 452 {
@@ -456,7 +455,7 @@ namespace OpenSim.Region.ClientStack.Linden
456 PollServiceAssetEventArgs args = new PollServiceAssetEventArgs(capUrl, agentID, m_scene); 455 PollServiceAssetEventArgs args = new PollServiceAssetEventArgs(capUrl, agentID, m_scene);
457 args.Type = PollServiceEventArgs.EventType.Asset; 456 args.Type = PollServiceEventArgs.EventType.Asset;
458 MainServer.Instance.AddPollServiceHTTPHandler(capUrl, args); 457 MainServer.Instance.AddPollServiceHTTPHandler(capUrl, args);
459 IExternalCapsModule handler = m_scene.RequestModuleInterface<IExternalCapsModule>(); 458
460 if (handler != null) 459 if (handler != null)
461 handler.RegisterExternalUserCapsHandler(agentID, caps, "ViewerAsset", capUrl); 460 handler.RegisterExternalUserCapsHandler(agentID, caps, "ViewerAsset", capUrl);
462 else 461 else
@@ -464,8 +463,7 @@ namespace OpenSim.Region.ClientStack.Linden
464 m_capsDictGetAsset[agentID] = capUrl; 463 m_capsDictGetAsset[agentID] = capUrl;
465 } 464 }
466 else if (m_GetAssetURL != string.Empty) 465 else if (m_GetAssetURL != string.Empty)
467 caps.RegisterHandler("ViewerAsset", m_GetMesh2URL); 466 caps.RegisterHandler("ViewerAsset", m_GetAssetURL);
468
469 } 467 }
470 468
471 private void DeregisterCaps(UUID agentID, Caps caps) 469 private void DeregisterCaps(UUID agentID, Caps caps)