Skip to content

Commit 943208f

Browse files
committed
Fix: Server now properly returns the lobbies being searched for always. Fixes #93
1 parent b3ef94c commit 943208f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

server/internal/routes/game/advertisement/getLanAdvertisements.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ func GetLanAdvertisements(w http.ResponseWriter, r *http.Request) {
2626
i.JSON(&w, i.A{2, i.A{}, i.A{}})
2727
return
2828
}
29-
lanServerGuids := strings.Split(strings.Trim(q.RelayRegions, `[]"`), ",")
29+
lanServerGuids := strings.Split(strings.ReplaceAll(strings.Trim(q.RelayRegions, `[]`), `"`, ``), ",")
3030
sess, _ := middleware.Session(r)
3131
lanServerGuidsMap := make(map[string]struct{}, len(lanServerGuids))
3232
for _, guid := range lanServerGuids {

0 commit comments

Comments
 (0)