mirror of https://github.com/icedream/npsharp.git
and this is why I don't work with other people - readded GUID argument to NPSharp ValidateTicket command
parent
f26fcf5dfa
commit
7f9cc54c54
|
@ -187,7 +187,7 @@ namespace NPSharp.NP
|
||||||
/// Authenticates a server ticket.
|
/// Authenticates a server ticket.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <returns>True if the ticket validation succeeded, otherwise false.</returns>
|
/// <returns>True if the ticket validation succeeded, otherwise false.</returns>
|
||||||
public async Task<bool> ValidateTicket(IPAddress clientIP, Ticket ticket)
|
public async Task<bool> ValidateTicket(IPAddress clientIP, ulong guid, Ticket ticket)
|
||||||
{
|
{
|
||||||
var tcs = new TaskCompletionSource<bool>();
|
var tcs = new TaskCompletionSource<bool>();
|
||||||
|
|
||||||
|
@ -204,7 +204,7 @@ namespace NPSharp.NP
|
||||||
{
|
{
|
||||||
ClientIP = (uint)IPAddress.HostToNetworkOrder((int)BitConverter.ToUInt32(clientIP.GetAddressBytes(), 0)),
|
ClientIP = (uint)IPAddress.HostToNetworkOrder((int)BitConverter.ToUInt32(clientIP.GetAddressBytes(), 0)),
|
||||||
Ticket = ticket.Serialize(),
|
Ticket = ticket.Serialize(),
|
||||||
NPID = ticket.ClientID
|
NPID = guid
|
||||||
});
|
});
|
||||||
|
|
||||||
return await tcs.Task;
|
return await tcs.Task;
|
||||||
|
|
Loading…
Reference in New Issue