mirror of
https://github.com/deavminet/dnetd
synced 2024-09-21 09:43:37 +02:00
Updated auth code
This commit is contained in:
parent
e674538415
commit
e36103c153
@ -96,7 +96,7 @@ public class DConnection : Thread
|
|||||||
|
|
||||||
/* Get the username and password */
|
/* Get the username and password */
|
||||||
string username = cast(string)message.data[2..usernameLength];
|
string username = cast(string)message.data[2..usernameLength];
|
||||||
string password = cast(string)message.data[cast(ubyte)2+usernameLength..message.data.length];
|
string password = cast(string)message.data[cast(ulong)2+usernameLength..message.data.length];
|
||||||
}
|
}
|
||||||
/* If `link` command (requires: unauthed) */
|
/* If `link` command (requires: unauthed) */
|
||||||
else if(commandByte == 1 && !hasAuthed)
|
else if(commandByte == 1 && !hasAuthed)
|
||||||
|
Loading…
Reference in New Issue
Block a user