Skip to content

Commit

Permalink
MV Auth: Unbreak guest mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Skyedra committed Aug 18, 2024
1 parent 323f2fd commit 6a98875
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion Robust.Shared/Network/NetManager.ServerAuth.cs
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,8 @@ private async void HandleHandshake(NetPeerData peer, NetConnection connection)

userData = new NetUserData(userId, name)
{
HWId = msgLogin.HWId
HWId = msgLogin.HWId,
PublicKey = ImmutableArray<byte>.Empty
};
}

Expand Down
3 changes: 2 additions & 1 deletion Robust.Shared/Player/DummySession.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ public DummySession(NetUserId userId, string userName, SessionData data)
Data = data;
UserData = new(userId, userName)
{
HWId = ImmutableArray<byte>.Empty
HWId = ImmutableArray<byte>.Empty,
PublicKey = ImmutableArray<byte>.Empty
};
DummyChannel = new(this);
}
Expand Down
3 changes: 2 additions & 1 deletion Robust.UnitTesting/RobustIntegrationTest.NetManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,8 @@ async Task DoConnect()
var sessionId = new NetUserId(userId);
var userData = new NetUserData(sessionId, userName)
{
HWId = ImmutableArray<byte>.Empty
HWId = ImmutableArray<byte>.Empty,
PublicKey = ImmutableArray<byte>.Empty
};

var args = await OnConnecting(
Expand Down

0 comments on commit 6a98875

Please sign in to comment.