mirror of
https://github.com/PretendoNetwork/splatoon.git
synced 2026-09-30 14:18:26 -05:00
fix(secure): use the correct register - splatoon uses non-ex
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user