aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Framework')
-rw-r--r--OpenSim/Framework/RegionInfo.cs41
1 files changed, 23 insertions, 18 deletions
diff --git a/OpenSim/Framework/RegionInfo.cs b/OpenSim/Framework/RegionInfo.cs
index 96f3049..b88895f 100644
--- a/OpenSim/Framework/RegionInfo.cs
+++ b/OpenSim/Framework/RegionInfo.cs
@@ -450,13 +450,17 @@ namespace OpenSim.Framework
450 public string GetOtherSetting(string key) 450 public string GetOtherSetting(string key)
451 { 451 {
452 string val; 452 string val;
453 m_otherSettings.TryGetValue(key, out val); 453 string keylower = key.ToLower();
454 return val; 454 if (m_otherSettings.TryGetValue(keylower, out val))
455 return val;
456 m_log.DebugFormat("[RegionInfo] Could not locate value for parameter {0}", key);
457 return null;
455 } 458 }
456 459
457 public void SetOtherSetting(string key, string value) 460 public void SetOtherSetting(string key, string value)
458 { 461 {
459 m_otherSettings[key] = value; 462 string keylower = key.ToLower();
463 m_otherSettings[keylower] = value;
460 } 464 }
461 465
462 private void ReadNiniConfig(IConfigSource source, string name) 466 private void ReadNiniConfig(IConfigSource source, string name)
@@ -498,12 +502,12 @@ namespace OpenSim.Framework
498 HashSet<String> allKeys = new HashSet<String>(); 502 HashSet<String> allKeys = new HashSet<String>();
499 foreach (string s in config.GetKeys()) 503 foreach (string s in config.GetKeys())
500 { 504 {
501 allKeys.Add(s.ToLower()); 505 allKeys.Add(s);
502 } 506 }
503 507
504 // RegionUUID 508 // RegionUUID
505 // 509 //
506 allKeys.Remove(("RegionUUID").ToLower()); 510 allKeys.Remove("RegionUUID");
507 string regionUUID = config.GetString("RegionUUID", string.Empty); 511 string regionUUID = config.GetString("RegionUUID", string.Empty);
508 if (regionUUID == String.Empty) 512 if (regionUUID == String.Empty)
509 { 513 {
@@ -518,7 +522,7 @@ namespace OpenSim.Framework
518 522
519 // Location 523 // Location
520 // 524 //
521 allKeys.Remove(("Location").ToLower()); 525 allKeys.Remove("Location");
522 string location = config.GetString("Location", String.Empty); 526 string location = config.GetString("Location", String.Empty);
523 if (location == String.Empty) 527 if (location == String.Empty)
524 { 528 {
@@ -534,7 +538,7 @@ namespace OpenSim.Framework
534 // InternalAddress 538 // InternalAddress
535 // 539 //
536 IPAddress address; 540 IPAddress address;
537 allKeys.Remove(("InternalAddress").ToLower()); 541 allKeys.Remove("InternalAddress");
538 if (config.Contains("InternalAddress")) 542 if (config.Contains("InternalAddress"))
539 { 543 {
540 address = IPAddress.Parse(config.GetString("InternalAddress", String.Empty)); 544 address = IPAddress.Parse(config.GetString("InternalAddress", String.Empty));
@@ -548,7 +552,7 @@ namespace OpenSim.Framework
548 // InternalPort 552 // InternalPort
549 // 553 //
550 int port; 554 int port;
551 allKeys.Remove(("InternalPort").ToLower()); 555 allKeys.Remove("InternalPort");
552 if (config.Contains("InternalPort")) 556 if (config.Contains("InternalPort"))
553 { 557 {
554 port = config.GetInt("InternalPort", 9000); 558 port = config.GetInt("InternalPort", 9000);
@@ -562,7 +566,7 @@ namespace OpenSim.Framework
562 566
563 // AllowAlternatePorts 567 // AllowAlternatePorts
564 // 568 //
565 allKeys.Remove(("AllowAlternatePorts").ToLower()); 569 allKeys.Remove("AllowAlternatePorts");
566 if (config.Contains("AllowAlternatePorts")) 570 if (config.Contains("AllowAlternatePorts"))
567 { 571 {
568 m_allow_alternate_ports = config.GetBoolean("AllowAlternatePorts", true); 572 m_allow_alternate_ports = config.GetBoolean("AllowAlternatePorts", true);
@@ -576,7 +580,7 @@ namespace OpenSim.Framework
576 580
577 // ExternalHostName 581 // ExternalHostName
578 // 582 //
579 allKeys.Remove(("ExternalHostName").ToLower()); 583 allKeys.Remove("ExternalHostName");
580 string externalName; 584 string externalName;
581 if (config.Contains("ExternalHostName")) 585 if (config.Contains("ExternalHostName"))
582 { 586 {
@@ -601,29 +605,30 @@ namespace OpenSim.Framework
601 605
602 // RegionType 606 // RegionType
603 m_regionType = config.GetString("RegionType", String.Empty); 607 m_regionType = config.GetString("RegionType", String.Empty);
604 allKeys.Remove(("RegionType").ToLower()); 608 allKeys.Remove("RegionType");
605 609
606 // Prim stuff 610 // Prim stuff
607 // 611 //
608 m_nonphysPrimMax = config.GetInt("NonphysicalPrimMax", 256); 612 m_nonphysPrimMax = config.GetInt("NonphysicalPrimMax", 256);
609 allKeys.Remove(("NonphysicalPrimMax").ToLower()); 613 allKeys.Remove("NonphysicalPrimMax");
610 m_physPrimMax = config.GetInt("PhysicalPrimMax", 10); 614 m_physPrimMax = config.GetInt("PhysicalPrimMax", 10);
611 allKeys.Remove(("PhysicalPrimMax").ToLower()); 615 allKeys.Remove("PhysicalPrimMax");
612 m_clampPrimSize = config.GetBoolean("ClampPrimSize", false); 616 m_clampPrimSize = config.GetBoolean("ClampPrimSize", false);
613 allKeys.Remove(("ClampPrimSize").ToLower()); 617 allKeys.Remove("ClampPrimSize");
614 m_objectCapacity = config.GetInt("MaxPrims", 15000); 618 m_objectCapacity = config.GetInt("MaxPrims", 15000);
615 allKeys.Remove(("MaxPrims").ToLower()); 619 allKeys.Remove("MaxPrims");
616 m_agentCapacity = config.GetInt("MaxAgents", 100); 620 m_agentCapacity = config.GetInt("MaxAgents", 100);
617 allKeys.Remove(("MaxAgents").ToLower()); 621 allKeys.Remove("MaxAgents");
618 622
619 // Multi-tenancy 623 // Multi-tenancy
620 // 624 //
621 ScopeID = new UUID(config.GetString("ScopeID", UUID.Zero.ToString())); 625 ScopeID = new UUID(config.GetString("ScopeID", UUID.Zero.ToString()));
622 allKeys.Remove(("ScopeID").ToLower()); 626 allKeys.Remove("ScopeID");
623 627
624 foreach (String s in allKeys) 628 foreach (String s in allKeys)
625 { 629 {
626 m_otherSettings.Add(s, config.GetString(s)); 630 string val = config.GetString(s);
631 SetOtherSetting(s, config.GetString(s));
627 } 632 }
628 } 633 }
629 634