-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.example.json
More file actions
72 lines (51 loc) · 2.51 KB
/
Copy pathconfig.example.json
File metadata and controls
72 lines (51 loc) · 2.51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
{
"_comment": "ScanTool 默认配置文件 - 所有可配置项及其说明",
"_location": "Linux: ~/.config/scantool/config.json | macOS: ~/Library/Application Support/scantool/config.json | Windows: %APPDATA%\\scantool\\config.json",
"theme": "dark",
"_theme_desc": "界面主题: dark (暗色), light (亮色), system (跟随系统)",
"language": "zh-CN",
"_language_desc": "界面语言: zh-CN (简体中文), en-US (English)",
"max_concurrency": 1000,
"_max_concurrency_desc": "全局最大并发连接数 (1-5000)",
"default_timeout": 3000000000,
"_default_timeout_desc": "默认超时时间 (纳秒), 3000000000 = 3秒",
"default_retries": 2,
"_default_retries_desc": "默认最大重试次数 (0-10)",
"custom_oui_path": "",
"_custom_oui_path_desc": "自定义 OUI 数据库文件路径, 为空则使用内置库",
"proxy": "",
"_proxy_desc": "HTTP/HTTPS 代理地址, 例如: http://127.0.0.1:8080, 为空则直连",
"log_config": {
"level": "info",
"_level_desc": "日志级别: debug, info, warn, error",
"output": "both",
"_output_desc": "日志输出: file (仅文件), stderr (仅终端), both (同时输出)",
"file_path": "",
"_file_path_desc": "日志文件路径, 为空时使用默认路径 (数据目录/scantool.log)",
"max_size_mb": 10,
"_max_size_mb_desc": "日志文件最大大小 (MB), 超过后自动轮转",
"max_age_days": 30,
"_max_age_days_desc": "日志文件保留天数, 超过后自动清理",
"mask_mac": false,
"_mask_mac_desc": "是否在日志中脱敏 MAC 地址"
},
"disclaimer_accepted": false,
"_disclaimer_accepted_desc": "用户是否已同意免责声明 (首次启动时设置)",
"disclaimer_version": "",
"_disclaimer_version_desc": "已同意的免责声明版本号",
"disclaimer_time": null,
"_disclaimer_time_desc": "同意免责声明的时间戳",
"window_width": 1280,
"window_height": 900,
"window_x": 0,
"window_y": 0,
"_window_geometry_desc": "主窗口的尺寸和位置 (自动保存, 下次启动恢复)",
"last_targets": [],
"_last_targets_desc": "最近 20 次输入的目标列表 (自动记录)",
"auto_clean_days": 90,
"_auto_clean_days_desc": "扫描历史自动清理天数, 超过此天数的会话将被自动删除",
"lock_timeout": 1800000000000,
"_lock_timeout_desc": "界面自动锁定超时 (纳秒), 1800000000000 = 30分钟, 0 = 禁用锁定",
"lock_password": "",
"_lock_password_desc": "界面锁定密码 (SHA256 哈希值, 不存储明文)"
}