mirror of
https://github.com/Facepunch/Facepunch.Steamworks.git
synced 2025-01-23 20:17:58 +03:00
Do test case fake IP initialization before login
This commit is contained in:
parent
5d944374b2
commit
9ff422533f
@ -46,6 +46,11 @@ namespace Steamworks
|
||||
|
||||
Steamworks.SteamServer.Init( 252490, serverInit );
|
||||
|
||||
//
|
||||
// Needs to happen before LogOnAnonymous
|
||||
//
|
||||
SteamNetworkingSockets.RequestFakeIP();
|
||||
|
||||
SteamServer.LogOnAnonymous();
|
||||
|
||||
}
|
||||
|
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user