From d4f62b8f1ce23b4d6611ff43639199097853c100 Mon Sep 17 00:00:00 2001 From: Roman | RyzenAdvanced Date: Mon, 25 May 2026 17:39:39 +0400 Subject: [PATCH] Fix Freebuff: add missing secrets/string imports, base36 client_id --- src/translate-proxy.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/translate-proxy.py b/src/translate-proxy.py index 9f3f200..a6a342a 100755 --- a/src/translate-proxy.py +++ b/src/translate-proxy.py @@ -157,6 +157,7 @@ Architecture: import json, http.server, socketserver, urllib.request, urllib.parse, urllib.error, re import time, uuid, os, sys, argparse, threading, socket, collections, contextlib, signal +import secrets, string import dataclasses import http.client import selectors @@ -5428,7 +5429,7 @@ class Handler(http.server.BaseHTTPRequestHandler): metadata = { "run_id": run_id, "cost_mode": "free", - "client_id": secrets.token_hex(7)[:13], + "client_id": "".join(secrets.choice(string.digits + string.ascii_lowercase) for _ in range(13)), } if instance_id: metadata["freebuff_instance_id"] = instance_id