Files
pyxray/docs/config/core.md
T
2026-05-27 09:55:37 +08:00

1.8 KiB
Raw Blame History

核心配置

对应 settings.toml[core]

设置 UI 默认值 可选值 作用 什么时候修改
log_level 显示 info debug / info / warning / error / none 写入 Xray log.logleveldebug 便于排查,none 基本关闭日志。 排查启动失败、路由/DNS 行为异常时改 debug;日常用 info
mux_enabled 间接显示 false bool 控制主 proxy outbound 是否生成 mux。UI 通过 mux_concurrency = 0 表示关闭。 节点支持且希望复用连接时开启;兼容性异常时关闭。
mux_concurrency 显示 8 UI0/1/2/4/8/16/32/64;模型:1-1024 mux.concurrency。UI 选择 0 时保存为 mux_enabled = false 且并发恢复为 8 高并发小连接场景可尝试 8/16;不确定用 0
tcp_fast_open 隐藏 default default / yes / no default 时写入 outbound streamSettings.sockopt.tcpFastOpen 只有明确知道系统和网络支持 TFO 时修改。
ss_backend 隐藏 "" 字符串 预留字段,当前不影响 Xray JSON。 当前不用改。
trojan_backend 隐藏 "" 字符串 预留字段,当前不影响 Xray JSON。 当前不用改。

生成影响

条件 生成结果
log_level = debug log.loglevel = debugaccess = ""error = ""
log_level = warning log.loglevel = warningaccess = "none"
log_level = none log.loglevel = noneaccess = "none"error = "none"
mux_enabled = true 主代理 outbound 增加 mux.enabled = truemux.concurrency
tcp_fast_open != default proxy / direct outbound 增加 sockopt.tcpFastOpen