fix: remove experimental stationurl order adjustment

This commit is contained in:
Maple Nebel 2026-07-31 14:57:11 +02:00
parent 81dfc8b113
commit f2364776c6

View File

@ -1,9 +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"
commonmatchmakingext "github.com/PretendoNetwork/nex-protocols-common-go/v2/match-making-ext"
@ -33,11 +30,6 @@ 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)
}
func registerCommonSecureServerProtocols() {
database.Setup()
@ -45,7 +37,6 @@ func registerCommonSecureServerProtocols() {
globals.SecureEndpoint.RegisterServiceProtocol(secureProtocol)
commonSecureProtocol := commonsecure.NewCommonProtocol(secureProtocol)
commonSecureProtocol.EnableInsecureRegister()
commonSecureProtocol.OnAfterRegisterEx = adjustPublicStationFirst
commonSecureProtocol.CreateReportDBRecord = CreateReportDBRecord
natTraversalProtocol := nattraversal.NewProtocol()