From 9eec1e00c5df81641c6ec0aa0abc62621093402a Mon Sep 17 00:00:00 2001 From: codey Date: Wed, 5 Feb 2025 20:25:28 -0500 Subject: [PATCH] cleanup --- endpoints/xc.py | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/endpoints/xc.py b/endpoints/xc.py index 130c2f8..1ca2f35 100644 --- a/endpoints/xc.py +++ b/endpoints/xc.py @@ -28,13 +28,9 @@ class XC(FastAPI): self.constants = constants self.glob_state = glob_state - self.ws_endpoints = { - # "aces_ws_put": self.put_ws_handler, - } self.endpoints = { "xc": self.xc_handler, - #tbd } @@ -60,17 +56,12 @@ class XC(FastAPI): bid = data.bid cmd = data.cmd cmd_data = data.data - req_type = 0 - - if bid in [1]: - req_type = 2 - - if not self.util.check_key(path=request.url.path, req_type=req_type, key=key): + if not self.util.check_key(path=request.url.path, req_type=0, key=key): raise HTTPException(status_code=403, detail="Unauthorized") BID_ADDR_MAP = { - 0: '10.10.10.101:5991', # Thomas/Aces - 1: '10.10.10.100:5992' # MS & Waleed Combo + 0: '10.10.10.101:5991', # Patrick (a.k.a. Thomas a.k.a. Aces) + # TODO: add Havoc? } if not bid in BID_ADDR_MAP: