diff options
Diffstat (limited to 'OpenSim/Services/LLLoginService/LLLoginService.cs')
-rw-r--r-- | OpenSim/Services/LLLoginService/LLLoginService.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/OpenSim/Services/LLLoginService/LLLoginService.cs b/OpenSim/Services/LLLoginService/LLLoginService.cs index a57c9a7..d7cade5 100644 --- a/OpenSim/Services/LLLoginService/LLLoginService.cs +++ b/OpenSim/Services/LLLoginService/LLLoginService.cs | |||
@@ -301,7 +301,7 @@ namespace OpenSim.Services.LLLoginService | |||
301 | // | 301 | // |
302 | // Check client | 302 | // Check client |
303 | // | 303 | // |
304 | if (m_AllowedClients != string.Empty) | 304 | if (!String.IsNullOrWhiteSpace(m_AllowedClients)) |
305 | { | 305 | { |
306 | Regex arx = new Regex(m_AllowedClients); | 306 | Regex arx = new Regex(m_AllowedClients); |
307 | Match am = arx.Match(clientVersion); | 307 | Match am = arx.Match(clientVersion); |
@@ -315,7 +315,7 @@ namespace OpenSim.Services.LLLoginService | |||
315 | } | 315 | } |
316 | } | 316 | } |
317 | 317 | ||
318 | if (m_DeniedClients != string.Empty) | 318 | if (!String.IsNullOrWhiteSpace(m_DeniedClients)) |
319 | { | 319 | { |
320 | Regex drx = new Regex(m_DeniedClients); | 320 | Regex drx = new Regex(m_DeniedClients); |
321 | Match dm = drx.Match(clientVersion); | 321 | Match dm = drx.Match(clientVersion); |
@@ -329,7 +329,7 @@ namespace OpenSim.Services.LLLoginService | |||
329 | } | 329 | } |
330 | } | 330 | } |
331 | 331 | ||
332 | if (m_DeniedMacs != string.Empty) | 332 | if (!String.IsNullOrWhiteSpace(m_DeniedMacs)) |
333 | { | 333 | { |
334 | m_log.InfoFormat("[LLOGIN SERVICE]: Checking users Mac {0} against list of denied macs {1} ...", curMac, m_DeniedMacs); | 334 | m_log.InfoFormat("[LLOGIN SERVICE]: Checking users Mac {0} against list of denied macs {1} ...", curMac, m_DeniedMacs); |
335 | if (m_DeniedMacs.Contains(curMac)) | 335 | if (m_DeniedMacs.Contains(curMac)) |