From edddb2e9d4260687ab9c0b8dc67818c5814f7567 Mon Sep 17 00:00:00 2001 From: Hay1tsme Date: Sat, 18 Feb 2023 22:58:40 -0500 Subject: [PATCH] fix allnet request using the wrong function --- core/allnet.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/allnet.py b/core/allnet.py index 3b371ce..7e5accd 100644 --- a/core/allnet.py +++ b/core/allnet.py @@ -151,7 +151,7 @@ class AllnetServlet: def handle_dlorder(self, request: Request): request_ip = request.getClientAddress().host try: - req = AllnetDownloadOrderRequest(self.allnet_req_to_dict(request.content.getvalue())) + req = AllnetDownloadOrderRequest(self.billing_req_to_dict(request.content.getvalue())) # Validate the request. Currently we only validate the fields we plan on using if not req.game_id or not req.ver or not req.token or not req.serial or not req.ip: @@ -243,7 +243,7 @@ class AllnetServlet: ret.append(tmp) - def allnet_req_to_dict(self, data: bytes): + def billing_req_to_dict(self, data: bytes): """ Parses an billing request string into a python dictionary """ @@ -258,7 +258,7 @@ class AllnetServlet: print(e) return None - def billing_req_to_dict(self, data: str) -> Optional[List[Dict[str, Any]]]: + def allnet_req_to_dict(self, data: str) -> Optional[List[Dict[str, Any]]]: """ Parses an allnet request string into a python dictionary """