stale/uncommitted

This commit is contained in:
2024-08-27 20:47:29 -04:00
parent 493a5bebc1
commit da674e0ef9
3 changed files with 22 additions and 22 deletions

View File

@ -42,12 +42,17 @@ class XC(FastAPI):
bid = data.bid
cmd = data.cmd
cmd_data = data.data
req_type = 0
if not self.util.check_key(request.url.path, key):
if bid in [1]:
req_type = 2
if not self.util.check_key(path=request.url.path, req_type=req_type, key=key):
raise HTTPException(status_code=403, detail="Unauthorized")
BID_ADDR_MAP = {
0: '10.10.10.101:5991' # Thomas/Aces
0: '10.10.10.101:5991', # Thomas/Aces
1: '10.10.10.100:5992' # MS & Waleed Combo
}
if not bid in BID_ADDR_MAP.keys():