forked from carrydela/autoClaude
feat: Introduce new modules for permission management and proxy pool functionality.
This commit is contained in:
@@ -8,7 +8,8 @@ import json
|
||||
import threading
|
||||
from pathlib import Path
|
||||
|
||||
_PERM_FILE = Path(__file__).parent / "permissions.json"
|
||||
_PROJECT_ROOT = Path(__file__).parent.parent
|
||||
_PERM_FILE = _PROJECT_ROOT / "permissions.json"
|
||||
_lock = threading.Lock()
|
||||
|
||||
# 所有可用命令列表(用于验证输入)
|
||||
|
||||
@@ -18,7 +18,8 @@ import requests as std_requests
|
||||
|
||||
|
||||
# --- 配置常量 ---
|
||||
_PROXY_FILE = Path(__file__).parent / "proxy.txt"
|
||||
_PROJECT_ROOT = Path(__file__).parent.parent
|
||||
_PROXY_FILE = _PROJECT_ROOT / "proxy.txt"
|
||||
_TEST_URL = "https://claude.ai" # 测试目标
|
||||
_TEST_TIMEOUT = 10 # 测试超时秒数
|
||||
_INITIAL_PRIORITY = 100 # 初始优先级
|
||||
|
||||
Reference in New Issue
Block a user