mirror of
https://github.com/Facepunch/Facepunch.Steamworks.git
synced 2025-01-24 04:28:00 +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 );
|
Steamworks.SteamServer.Init( 252490, serverInit );
|
||||||
|
|
||||||
|
//
|
||||||
|
// Needs to happen before LogOnAnonymous
|
||||||
|
//
|
||||||
|
SteamNetworkingSockets.RequestFakeIP();
|
||||||
|
|
||||||
SteamServer.LogOnAnonymous();
|
SteamServer.LogOnAnonymous();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -57,8 +57,6 @@ namespace Steamworks
|
|||||||
SteamNetworkingUtils.DebugLevel = NetDebugOutput.Everything;
|
SteamNetworkingUtils.DebugLevel = NetDebugOutput.Everything;
|
||||||
SteamNetworkingUtils.OnDebugOutput += DebugOutput;
|
SteamNetworkingUtils.OnDebugOutput += DebugOutput;
|
||||||
|
|
||||||
SteamNetworkingSockets.RequestFakeIP();
|
|
||||||
|
|
||||||
var si = SteamNetworkingSockets.CreateRelaySocketFakeIP<TestSocketInterface>();
|
var si = SteamNetworkingSockets.CreateRelaySocketFakeIP<TestSocketInterface>();
|
||||||
|
|
||||||
Console.WriteLine( $"Created Socket: {si}" );
|
Console.WriteLine( $"Created Socket: {si}" );
|
||||||
@ -131,9 +129,6 @@ namespace Steamworks
|
|||||||
// seems to prevent it returning null connections from ConnectNormal
|
// seems to prevent it returning null connections from ConnectNormal
|
||||||
await Task.Delay( 2000 );
|
await Task.Delay( 2000 );
|
||||||
|
|
||||||
Console.WriteLine( $"----- Requesting Fake IP.." );
|
|
||||||
SteamNetworkingSockets.RequestFakeIP();
|
|
||||||
|
|
||||||
Console.WriteLine( $"----- Creating Socket Relay Socket.." );
|
Console.WriteLine( $"----- Creating Socket Relay Socket.." );
|
||||||
var socket = SteamNetworkingSockets.CreateRelaySocketFakeIP<TestSocketInterface>();
|
var socket = SteamNetworkingSockets.CreateRelaySocketFakeIP<TestSocketInterface>();
|
||||||
var server = socket.RunAsync();
|
var server = socket.RunAsync();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user