Skip to content

Commit

Permalink
Merge pull request #567 from sepalani/mh3-natneg
Browse files Browse the repository at this point in the history
Backend: Fix KeyError during NATNEG init
  • Loading branch information
AdmiralCurtiss authored Mar 18, 2024
2 parents 82b24ea + e3ec45b commit 2c65a9f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions gamespy_backend_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -547,6 +547,9 @@ def find_server_by_local_address(self, publicip, localaddr, gameid=None):
localip_int_be = localaddr[3]

def find_server(gameid):
if gameid not in self.server_list:
return None

best_match = None

for server in self.server_list[gameid]:
Expand Down

0 comments on commit 2c65a9f

Please sign in to comment.