From a58daa54c75c8d7f0cf81c84e26748722aaf66d6 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Sun, 12 Jul 2026 20:18:13 +0100 Subject: [PATCH] Allow CultMesh RUDP clients on remote routes --- src/GameCult.Mesh/CultMesh.cs | 2 +- tests/GameCult.Networking.Tests/NetworkingTests.cs | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/GameCult.Mesh/CultMesh.cs b/src/GameCult.Mesh/CultMesh.cs index 460584b6..739ed5a2 100644 --- a/src/GameCult.Mesh/CultMesh.cs +++ b/src/GameCult.Mesh/CultMesh.cs @@ -587,7 +587,7 @@ namespace GameCult.Mesh public sealed class CultMeshRudpSocketOptions { /// Gets or sets the local bind host. - public string BindHost { get; set; } = "127.0.0.1"; + public string BindHost { get; set; } = "0.0.0.0"; /// Gets or sets the local bind port. public int BindPort { get; set; } /// Gets or sets a caller-owned bound socket. diff --git a/tests/GameCult.Networking.Tests/NetworkingTests.cs b/tests/GameCult.Networking.Tests/NetworkingTests.cs index 42707754..862428a8 100644 --- a/tests/GameCult.Networking.Tests/NetworkingTests.cs +++ b/tests/GameCult.Networking.Tests/NetworkingTests.cs @@ -3114,6 +3114,12 @@ namespace GameCult.Networking.Tests 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] public void CultMeshRudpFacade_CreatesAuthorizedClientFromPeerEndpoint() {