自 sing-box 1.12.0 起
Hosts
结构
当内容只有一项时,可以忽略 JSON 数组 [] 标签
字段
path
hosts 文件路径列表。
默认使用 /etc/hosts
。
在 Windows 上默认使用 C:\Windows\System32\Drivers\etc\hosts
。
示例:
predefined
预定义的 hosts。
示例:
自 sing-box 1.12.0 起
当内容只有一项时,可以忽略 JSON 数组 [] 标签
hosts 文件路径列表。
默认使用 /etc/hosts
。
在 Windows 上默认使用 C:\Windows\System32\Drivers\etc\hosts
。
示例:
预定义的 hosts。
示例: