Skip to content

Commit 3d3680d

Browse files
committed
Listen for both ipv4 and ipv6 connections
1 parent ee4b974 commit 3d3680d

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

RLBotCS/Main.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
if (args.Length > 0 && args[0] == "--version")
1111
{
1212
Console.WriteLine(
13-
"RLBotServer v5.beta.7.8\n"
13+
"RLBotServer v5.beta.7.9\n"
1414
+ $"Bridge {BridgeVersion.Version}\n"
1515
+ "@ https://www.rlbot.org & https://github.com/RLBot/core"
1616
);

RLBotCS/Server/FlatBuffersServer.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
using System.Net;
12
using System.Net.Sockets;
23
using System.Threading.Channels;
34
using Microsoft.Extensions.Logging;
@@ -15,7 +16,7 @@ ChannelWriter<IBridgeMessage> bridge
1516
{
1617
private readonly ServerContext _context = new(incomingMessages, bridge)
1718
{
18-
Server = new TcpListener(new(new byte[] { 0, 0, 0, 0 }), rlbotPort),
19+
Server = new TcpListener(IPAddress.IPv6Any, rlbotPort),
1920
};
2021

2122
private void AddSession(TcpClient client)
@@ -89,6 +90,7 @@ private async Task HandleServer()
8990
{
9091
if (_context.Server == null)
9192
throw new InvalidOperationException("Server not initialized");
93+
_context.Server.Server.DualMode = true;
9294
_context.Server.Start();
9395

9496
BallPredictor.SetMode(PredictionMode.Standard);

0 commit comments

Comments
 (0)