From b16b8962c60858bd5fd6c6c667ea06f14f051b87 Mon Sep 17 00:00:00 2001 From: mrjvs Date: Sat, 8 Aug 2026 19:23:13 +0200 Subject: [PATCH] fix: only get public station URL --- nex/register_common_secure_server_protocols.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nex/register_common_secure_server_protocols.go b/nex/register_common_secure_server_protocols.go index 185e72a..90eba43 100644 --- a/nex/register_common_secure_server_protocols.go +++ b/nex/register_common_secure_server_protocols.go @@ -1,8 +1,6 @@ package nex import ( - "slices" - "github.com/PretendoNetwork/nex-go/v2" "github.com/PretendoNetwork/nex-go/v2/types" commonmatchmaking "github.com/PretendoNetwork/nex-protocols-common-go/v2/match-making" @@ -35,7 +33,9 @@ func cleanupMatchmakeSessionSearchCriteriasHandler(searchCriterias types.List[ma func adjustPublicStationFirst(packet nex.PacketInterface, urls types.List[types.StationURL], dataHolder types.DataHolder) { connection := packet.Sender().(*nex.PRUDPConnection) - slices.Reverse(connection.StationURLs) + connection.StationURLs = []types.StationURL{ + connection.StationURLs[1], + } } func registerCommonSecureServerProtocols() {