Do test case fake IP initialization before login

This commit is contained in:
André Straubmeier 2021-11-24 10:19:55 +01:00
parent 5d944374b2
commit 9ff422533f
2 changed files with 5 additions and 5 deletions

View File

@ -46,6 +46,11 @@ namespace Steamworks
Steamworks.SteamServer.Init( 252490, serverInit );
//
// Needs to happen before LogOnAnonymous
//
SteamNetworkingSockets.RequestFakeIP();
SteamServer.LogOnAnonymous();
}

View File

@ -57,8 +57,6 @@ namespace Steamworks
SteamNetworkingUtils.DebugLevel = NetDebugOutput.Everything;
SteamNetworkingUtils.OnDebugOutput += DebugOutput;
SteamNetworkingSockets.RequestFakeIP();
var si = SteamNetworkingSockets.CreateRelaySocketFakeIP<TestSocketInterface>();
Console.WriteLine( $"Created Socket: {si}" );
@ -131,9 +129,6 @@ namespace Steamworks
// seems to prevent it returning null connections from ConnectNormal
await Task.Delay( 2000 );
Console.WriteLine( $"----- Requesting Fake IP.." );
SteamNetworkingSockets.RequestFakeIP();
Console.WriteLine( $"----- Creating Socket Relay Socket.." );
var socket = SteamNetworkingSockets.CreateRelaySocketFakeIP<TestSocketInterface>();
var server = socket.RunAsync();