From 7f063e043422c4aacc6bdb68b276bf5927458646 Mon Sep 17 00:00:00 2001 From: Pascal Serrarens Date: Fri, 6 Jun 2025 17:30:29 +0200 Subject: [PATCH] Fix issues with non-site participants --- src/Participants/ParticipantUDP.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Participants/ParticipantUDP.cs b/src/Participants/ParticipantUDP.cs index 4e085d2..ab4cfa2 100644 --- a/src/Participants/ParticipantUDP.cs +++ b/src/Participants/ParticipantUDP.cs @@ -44,6 +44,9 @@ namespace RoboidControl { /// The port number of the site server /// The port used by the local participant public ParticipantUDP(string ipAddress, int port = 7681, int localPort = 7681) : base("127.0.0.1", localPort) { + this.ipAddress = ipAddress; + this.port = port; + // Determine local IP address IPAddress localIpAddress = null; IPAddress subnetMask = null; @@ -77,7 +80,7 @@ namespace RoboidControl { if (this.port == 0) this.isIsolated = true; else - this.remoteSite = new Participant(ipAddress, port, this); + this.remoteSite = new ParticipantUDP(ipAddress, port, this); Participant.AddParticipant(this); Participant.ReplaceLocalParticipant(this);