From cc42ad0aa97e022d96afd0be51fa003944de8ed3 Mon Sep 17 00:00:00 2001 From: unlogisch04 <98281608+unlogisch04@users.noreply.github.com> Date: Thu, 27 Nov 2025 19:29:01 +0100 Subject: [PATCH] fix no broadcast after disconnect (#491) fix no broadcast after disconnect After a disconnect the trackers did not send a broadcast to discover the server but did directly try to send it to the server. So if for some reason the server did change its ip address the tracker had to be rebooted. --- src/network/connection.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/network/connection.cpp b/src/network/connection.cpp index edada9f..b7a279f 100644 --- a/src/network/connection.cpp +++ b/src/network/connection.cpp @@ -620,6 +620,9 @@ void Connection::reset() { m_UDP.begin(m_ServerPort); + // Reset server address to broadcast if disconnected + m_ServerHost = IPAddress(255, 255, 255, 255); + statusManager.setStatus(SlimeVR::Status::SERVER_CONNECTING, true); } @@ -650,6 +653,9 @@ void Connection::update() { ); m_Logger.warn("Connection to server timed out"); + // Reset server address to broadcast if disconnected + m_ServerHost = IPAddress(255, 255, 255, 255); + return; }