Allow CultMesh RUDP clients on remote routes
This commit is contained in:
parent
1f8f832a73
commit
a58daa54c7
2 changed files with 7 additions and 1 deletions
|
|
@ -587,7 +587,7 @@ namespace GameCult.Mesh
|
||||||
public sealed class CultMeshRudpSocketOptions
|
public sealed class CultMeshRudpSocketOptions
|
||||||
{
|
{
|
||||||
/// <summary>Gets or sets the local bind host.</summary>
|
/// <summary>Gets or sets the local bind host.</summary>
|
||||||
public string BindHost { get; set; } = "127.0.0.1";
|
public string BindHost { get; set; } = "0.0.0.0";
|
||||||
/// <summary>Gets or sets the local bind port.</summary>
|
/// <summary>Gets or sets the local bind port.</summary>
|
||||||
public int BindPort { get; set; }
|
public int BindPort { get; set; }
|
||||||
/// <summary>Gets or sets a caller-owned bound socket.</summary>
|
/// <summary>Gets or sets a caller-owned bound socket.</summary>
|
||||||
|
|
|
||||||
|
|
@ -3114,6 +3114,12 @@ namespace GameCult.Networking.Tests
|
||||||
Assert.That(catalog.IsAuthorized(peer, CultMeshPeerRoles.ShardPrimary, "players-us-east", now.AddMinutes(6)), Is.False);
|
Assert.That(catalog.IsAuthorized(peer, CultMeshPeerRoles.ShardPrimary, "players-us-east", now.AddMinutes(6)), Is.False);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[Test]
|
||||||
|
public void CultMeshRudpClient_DefaultBindAllowsRemoteRoutes()
|
||||||
|
{
|
||||||
|
Assert.That(new CultMeshRudpSocketOptions().BindHost, Is.EqualTo("0.0.0.0"));
|
||||||
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
public void CultMeshRudpFacade_CreatesAuthorizedClientFromPeerEndpoint()
|
public void CultMeshRudpFacade_CreatesAuthorizedClientFromPeerEndpoint()
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue