stale/uncommitted
This commit is contained in:
@ -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():
|
||||
|
Reference in New Issue
Block a user