patch prep

This commit is contained in:
Brant Martin
2019-10-23 20:36:15 -04:00
parent fb67b2f3d1
commit 9c2dc69e3c
5 changed files with 15 additions and 12 deletions

View File

@@ -16,7 +16,6 @@ using NLog.Targets;
using Sandbox.Engine.Utils;
using Torch.Utils;
using VRage.FileSystem;
using VRage.Library.Exceptions;
namespace Torch.Server
{

View File

@@ -210,8 +210,9 @@ namespace Torch.Server.Managers
private void ValidateAuthTicketResponse(ulong steamId, JoinResult response, ulong steamOwner)
{
var state = new MyP2PSessionState();
MySteamService.Static.Peer2Peer.GetSessionState(steamId, ref state);
var ip = new IPAddress(BitConverter.GetBytes(state.RemoteIP).Reverse().ToArray());
//MySteamService.Static.Peer2Peer.GetSessionState(steamId, ref state);
//var ip = new IPAddress(BitConverter.GetBytes(state.RemoteIP).Reverse().ToArray());
string ip = "Can't acquire IP because Keen did a stupid";
Torch.CurrentSession.KeenSession.PromotedUsers.TryGetValue(steamId, out MyPromoteLevel promoteLevel);