From 04ac98725cceea28068aebc830c101eaf90888f7 Mon Sep 17 00:00:00 2001 From: Tindy X <49061470+tindy2013@users.noreply.github.com> Date: Mon, 8 Apr 2024 16:21:29 +0800 Subject: [PATCH] Add clash_api to default sing-box config base --- base/base/all_base.tpl | 11 ++++++++++- base/base/singbox.json | 11 ++++++++++- 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/base/base/all_base.tpl b/base/base/all_base.tpl index 933e8cae2..2fa2548cb 100644 --- a/base/base/all_base.tpl +++ b/base/base/all_base.tpl @@ -378,7 +378,16 @@ enhanced-mode-by-rule = true "rules": [], "auto_detect_interface": true }, - "experimental": {} + "experimental": { + "cache_file": { + "enabled": true, + "store_fakeip": true + }, + "clash_api": { + "external_controller": "127.0.0.1:9090", + "external_ui": "dashboard" + } + } } {% endif %} diff --git a/base/base/singbox.json b/base/base/singbox.json index 4263bd55d..252bf5ee0 100644 --- a/base/base/singbox.json +++ b/base/base/singbox.json @@ -100,5 +100,14 @@ "rules": [], "auto_detect_interface": true }, - "experimental": {} + "experimental": { + "cache_file": { + "enabled": true, + "store_fakeip": true + }, + "clash_api": { + "external_controller": "127.0.0.1:9090", + "external_ui": "dashboard" + } + } }