* Removed private memeber _login, replaced with local var.
* Removed Random Class, replaced with LLUUID.Randomadam
parent
59e7586558
commit
defa10062a
|
@ -52,13 +52,12 @@ namespace OpenSim.GridServers
|
||||||
{
|
{
|
||||||
_gridServer = gridServer;
|
_gridServer = gridServer;
|
||||||
}
|
}
|
||||||
private Login _login;
|
|
||||||
private IGridServer _gridServer;
|
private IGridServer _gridServer;
|
||||||
private ushort _loginPort = 8080;
|
private ushort _loginPort = 8080;
|
||||||
public IPAddress clientAddress = IPAddress.Loopback;
|
public IPAddress clientAddress = IPAddress.Loopback;
|
||||||
public IPAddress remoteAddress = IPAddress.Any;
|
public IPAddress remoteAddress = IPAddress.Any;
|
||||||
private Socket loginServer;
|
private Socket loginServer;
|
||||||
private Random RandomClass = new Random();
|
|
||||||
private int NumClients;
|
private int NumClients;
|
||||||
private string _defaultResponse;
|
private string _defaultResponse;
|
||||||
|
|
||||||
|
@ -240,8 +239,7 @@ namespace OpenSim.GridServers
|
||||||
|
|
||||||
//create a agent and session LLUUID
|
//create a agent and session LLUUID
|
||||||
Agent = GetAgentId( first, last );
|
Agent = GetAgentId( first, last );
|
||||||
int SessionRand = this.RandomClass.Next(1,999);
|
Session = LLUUID.Random();
|
||||||
Session = new LLUUID("aaaabbbb-0200-"+SessionRand.ToString("0000")+"-8664-58f53e442797");
|
|
||||||
|
|
||||||
//create some login info
|
//create some login info
|
||||||
Hashtable LoginFlagsHash = new Hashtable();
|
Hashtable LoginFlagsHash = new Hashtable();
|
||||||
|
@ -284,7 +282,7 @@ namespace OpenSim.GridServers
|
||||||
|
|
||||||
CustomiseLoginResponse( responseData, first, last );
|
CustomiseLoginResponse( responseData, first, last );
|
||||||
|
|
||||||
this._login = new Login();
|
Login _login = new Login();
|
||||||
//copy data to login object
|
//copy data to login object
|
||||||
_login.First = first;
|
_login.First = first;
|
||||||
_login.Last = last;
|
_login.Last = last;
|
||||||
|
@ -308,10 +306,7 @@ namespace OpenSim.GridServers
|
||||||
|
|
||||||
protected virtual LLUUID GetAgentId(string firstName, string lastName)
|
protected virtual LLUUID GetAgentId(string firstName, string lastName)
|
||||||
{
|
{
|
||||||
LLUUID Agent;
|
return LLUUID.Random();
|
||||||
int AgentRand = this.RandomClass.Next(1,9999);
|
|
||||||
Agent = new LLUUID("99998888-0100-"+AgentRand.ToString("0000")+"-8ec1-0b1d5cd6aead");
|
|
||||||
return Agent;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
protected virtual bool Authenticate(string first, string last, string passwd)
|
protected virtual bool Authenticate(string first, string last, string passwd)
|
||||||
|
|
Loading…
Reference in New Issue