获取基本配置
curl --request GET \
--url http://{host}:{port}/configs \
--header 'Authorization: Bearer <token>'{
"mixed-port": 7890,
"mode": "rule",
"log-level": "info",
"allow-lan": true,
"ipv6": false,
"tun": {
"enable": false
}
}运行配置
获取基本配置
GET
/
configs
获取基本配置
curl --request GET \
--url http://{host}:{port}/configs \
--header 'Authorization: Bearer <token>'{
"mixed-port": 7890,
"mode": "rule",
"log-level": "info",
"allow-lan": true,
"ipv6": false,
"tun": {
"enable": false
}
}授权
在请求头中携带 Authorization: Bearer ${secret},其中 secret 对应配置中的 secret 字段。若未设置 secret 可省略,但强烈建议设置。
响应
200 - application/json
当前运行配置。
最后修改于 2026年6月23日
此页面对您有帮助吗?
⌘I
