Skip to content

Commit 8923afe

Browse files
committed
Use time-aware signature validation
1 parent c59832c commit 8923afe

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

core/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ async def access_log_middleware(request: fastapi.Request, call_next):
261261

262262
def get_cluster_from_sign(hash: str, s: str, e: str) -> Optional[str]:
263263
for cluster in clusters.clusters:
264-
if check_sign_without_time(hash, cluster._token._secret, s, e):
264+
if check_sign(hash, cluster._token._secret, s, e):
265265
return cluster.id
266266
return None
267267

0 commit comments

Comments
 (0)