Skip to content

Commit

Permalink
fix(secure): fix string issue
Browse files Browse the repository at this point in the history
  • Loading branch information
AToska21 committed Sep 30, 2024
1 parent b2414b6 commit 52bb341
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions nex/register_common_secure_server_protocols.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package nex
import (
"github.com/PretendoNetwork/nex-go/v2"
"github.com/PretendoNetwork/nex-go/v2/types"
types "github.com/PretendoNetwork/nex-go/v2/types"
// common_globals "github.com/PretendoNetwork/nex-protocols-common-go/v2/globals"
commonnattraversal "github.com/PretendoNetwork/nex-protocols-common-go/v2/nat-traversal"
commonsecure "github.com/PretendoNetwork/nex-protocols-common-go/v2/secure-connection"
Expand Down Expand Up @@ -89,8 +90,8 @@ func compareSearchCriteria[T ~uint16 | ~uint32](original T, search string) bool

func cleanupMatchmakeSessionSearchCriteriasHandler(searchCriterias *types.List[*match_making_types.MatchmakeSessionSearchCriteria]) {
for _, searchCriteria := range searchCriterias.Slice() {
searchCriteria.Attribs.SetIndex(1, "")
searchCriteria.Attribs.SetIndex(4, "")
searchCriteria.Attribs.SetIndex(1, types.NewString(""))
searchCriteria.Attribs.SetIndex(4, types.NewString(""))
}
}

Expand Down

0 comments on commit 52bb341

Please sign in to comment.