mirror of
https://github.com/SagerNet/sing-box.git
synced 2024-11-25 18:11:28 +00:00
41 lines
675 B
Markdown
41 lines
675 B
Markdown
|
---
|
||
|
icon: material/delete-clock
|
||
|
---
|
||
|
|
||
|
!!! failure "已在 sing-box 1.8.0 废弃"
|
||
|
|
||
|
Geosite 已废弃且可能在不久的将来移除,参阅 [迁移指南](/zh/migration/#geosite)。
|
||
|
|
||
|
### 结构
|
||
|
|
||
|
```json
|
||
|
{
|
||
|
"route": {
|
||
|
"geosite": {
|
||
|
"path": "",
|
||
|
"download_url": "",
|
||
|
"download_detour": ""
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
```
|
||
|
|
||
|
### 字段
|
||
|
|
||
|
#### path
|
||
|
|
||
|
指定 GeoSite 资源的路径。
|
||
|
|
||
|
默认 `geosite.db`。
|
||
|
|
||
|
#### download_url
|
||
|
|
||
|
指定 GeoSite 资源的下载链接。
|
||
|
|
||
|
默认为 `https://github.com/SagerNet/sing-geosite/releases/latest/download/geosite.db`。
|
||
|
|
||
|
#### download_detour
|
||
|
|
||
|
用于下载 GeoSite 资源的出站的标签。
|
||
|
|
||
|
如果为空,将使用默认出站。
|