From 91c11314acbec75bfdfa878b69b02543629b2b17 Mon Sep 17 00:00:00 2001 From: jhurliman Date: Fri, 2 Mar 2007 08:36:57 +0000 Subject: * Bind to IPAddress.Any instead of a hardcoded address * Allow login if a connection can't be made to the grid auth server (instead of crashing) * Brought the MSVC project file and solution up to speed * Added a default VersionInfo.cs to allow compiling with MSVC * Removed unnecessary .suo file --- src/OpenSimClient.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/OpenSimClient.cs') diff --git a/src/OpenSimClient.cs b/src/OpenSimClient.cs index 59833d8..83d8599 100644 --- a/src/OpenSimClient.cs +++ b/src/OpenSimClient.cs @@ -391,7 +391,7 @@ namespace OpenSim String grTest = sr.ReadLine(); sr.Close(); GridResponse.Close(); - if(grTest.Equals("1")) { // YAY! Valid login + if(String.IsNullOrEmpty(grTest) || grTest.Equals("1")) { // YAY! Valid login Console.WriteLine("OpenSimClient.cs:AuthUser() - Got authenticated connection from " + userEP.ToString()); this.AgentID=cirpack.CircuitCode.ID; this.SessionID=cirpack.CircuitCode.SessionID; -- cgit v1.1