mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 01:06:30 +08:00
do case invariant compare on deny mac and id0
This commit is contained in:
@@ -48,7 +48,7 @@ namespace OpenSim.Capabilities.Handlers
|
||||
private static readonly ILog m_log =
|
||||
LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
|
||||
|
||||
private static readonly Dictionary<string, AssetType> queryTypes = new Dictionary<string, AssetType>()
|
||||
private static readonly Dictionary<string, AssetType> queryTypes = new()
|
||||
{
|
||||
{"texture_id", AssetType.Texture},
|
||||
{"sound_id", AssetType.Sound},
|
||||
|
||||
@@ -367,7 +367,7 @@ namespace OpenSim.Services.HypergridService
|
||||
if (!String.IsNullOrWhiteSpace(m_DeniedMacs))
|
||||
{
|
||||
//m_log.InfoFormat("[GATEKEEPER SERVICE]: Checking users Mac {0} against list of denied macs {1} ...", curMac, m_DeniedMacs);
|
||||
if (m_DeniedMacs.Contains(curMac))
|
||||
if (m_DeniedMacs.Contains(curMac, StringComparison.InvariantCultureIgnoreCase))
|
||||
{
|
||||
reason = "Login failed: client with Mac " + curMac + " is denied";
|
||||
m_log.InfoFormat("[GATEKEEPER SERVICE]: Login failed, reason: client with mac {0} is denied", curMac);
|
||||
@@ -378,7 +378,7 @@ namespace OpenSim.Services.HypergridService
|
||||
if (!string.IsNullOrWhiteSpace(m_DeniedID0s))
|
||||
{
|
||||
//m_log.InfoFormat("[GATEKEEPER SERVICE]: Checking users Mac {0} against list of denied macs {1} ...", curMac, m_DeniedMacs);
|
||||
if (m_DeniedID0s.Contains(aCircuit.Id0))
|
||||
if (m_DeniedID0s.Contains(aCircuit.Id0, StringComparison.InvariantCultureIgnoreCase))
|
||||
{
|
||||
reason = "Login failed: client with id0 " + aCircuit.Id0 + " is denied";
|
||||
m_log.InfoFormat("[GATEKEEPER SERVICE]: Login failed, reason: client with mac {0} is denied", aCircuit.Id0);
|
||||
|
||||
Reference in New Issue
Block a user