Skip to content

规则集

🆕自 sing-box 1.8.0 起

sing-box 1.10.0 中的更改

🆕type: inline

结构

🆕自 sing-box 1.10.0 起

json
{
  "type": "inline", // 可选
  "tag": "",
  "rules": []
}

字段

type

必填

规则集类型,localremote

tag

必填

规则集的标签。

内联字段

🆕自 sing-box 1.10.0 起

rules

必填

一组 无头规则.

本地或远程字段

format

必填

规则集格式,sourcebinary

本地字段

path

必填

自 sing-box 1.10.0 起,文件更改时将自动重新加载。

规则集的文件路径。

远程字段

url

必填

规则集的下载 URL。

download_detour

用于下载规则集的出站的标签。

如果为空,将使用默认出站。

update_interval

规则集的更新间隔。

默认使用 1d