fix(secure): use the correct register - splatoon uses non-ex
Some checks failed
Build and Publish Docker Image / Build and Publish (amd64) (push) Has been cancelled
Build and Publish Docker Image / Build and Publish (arm64) (push) Has been cancelled

This commit is contained in:
Ash Logan
2026-09-13 23:58:27 +10:00
parent b30520539b
commit 52bbb1d0c2

View File

@@ -31,7 +31,7 @@ func cleanupMatchmakeSessionSearchCriteriasHandler(searchCriterias types.List[ma
}
}
func adjustPublicStationFirst(packet nex.PacketInterface, urls types.List[types.StationURL], dataHolder types.DataHolder) {
func adjustPublicStationFirst(packet nex.PacketInterface, urls types.List[types.StationURL]) {
connection := packet.Sender().(*nex.PRUDPConnection)
connection.StationURLs = []types.StationURL{
connection.StationURLs[1],
@@ -45,7 +45,7 @@ func registerCommonSecureServerProtocols() {
globals.SecureEndpoint.RegisterServiceProtocol(secureProtocol)
commonSecureProtocol := commonsecure.NewCommonProtocol(secureProtocol)
commonSecureProtocol.EnableInsecureRegister()
commonSecureProtocol.OnAfterRegisterEx = adjustPublicStationFirst
commonSecureProtocol.OnAfterRegister = adjustPublicStationFirst
commonSecureProtocol.CreateReportDBRecord = CreateReportDBRecord
natTraversalProtocol := nattraversal.NewProtocol()