aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Servers/BaseOpenSimServer.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Framework/Servers/BaseOpenSimServer.cs')
-rw-r--r--OpenSim/Framework/Servers/BaseOpenSimServer.cs16
1 files changed, 15 insertions, 1 deletions
diff --git a/OpenSim/Framework/Servers/BaseOpenSimServer.cs b/OpenSim/Framework/Servers/BaseOpenSimServer.cs
index 483f8b6..e03713e 100644
--- a/OpenSim/Framework/Servers/BaseOpenSimServer.cs
+++ b/OpenSim/Framework/Servers/BaseOpenSimServer.cs
@@ -79,6 +79,11 @@ namespace OpenSim.Framework.Servers
79 protected string m_version; 79 protected string m_version;
80 80
81 protected string m_pidFile = String.Empty; 81 protected string m_pidFile = String.Empty;
82
83 /// <summary>
84 /// Random uuid for private data
85 /// </summary>
86 protected string m_osSecret = String.Empty;
82 87
83 protected BaseHttpServer m_httpServer; 88 protected BaseHttpServer m_httpServer;
84 public BaseHttpServer HttpServer 89 public BaseHttpServer HttpServer
@@ -95,6 +100,9 @@ namespace OpenSim.Framework.Servers
95 { 100 {
96 m_startuptime = DateTime.Now; 101 m_startuptime = DateTime.Now;
97 m_version = VersionInfo.Version; 102 m_version = VersionInfo.Version;
103
104 // Random uuid for private data
105 m_osSecret = UUID.Random().ToString();
98 106
99 m_periodicDiagnosticsTimer.Elapsed += new ElapsedEventHandler(LogDiagnostics); 107 m_periodicDiagnosticsTimer.Elapsed += new ElapsedEventHandler(LogDiagnostics);
100 m_periodicDiagnosticsTimer.Enabled = true; 108 m_periodicDiagnosticsTimer.Enabled = true;
@@ -458,12 +466,18 @@ namespace OpenSim.Framework.Servers
458 { 466 {
459 } 467 }
460 } 468 }
469
470 public string osSecret {
471 // Secret uuid for the simulator
472 get { return m_osSecret; }
473
474 }
461 475
462 public string StatReport(OSHttpRequest httpRequest) 476 public string StatReport(OSHttpRequest httpRequest)
463 { 477 {
464 return m_stats.XReport((DateTime.Now - m_startuptime).ToString() , m_version ); 478 return m_stats.XReport((DateTime.Now - m_startuptime).ToString() , m_version );
465 } 479 }
466 480
467 protected void RemovePIDFile() 481 protected void RemovePIDFile()
468 { 482 {
469 if (m_pidFile != String.Empty) 483 if (m_pidFile != String.Empty)