Enhancements

Fix base sing-box configuration.
Add support for adding Clash modes to sing-box configs.
Optimize codes.
This commit is contained in:
Tindy X
2023-11-10 18:23:43 +08:00
parent 8b45e06d0d
commit 51b65ec437
9 changed files with 306 additions and 98 deletions

View File

@@ -140,6 +140,9 @@ clash_use_new_field_name = true
# key: value
clash_proxies_style = "flow"
# add Clash mode to sing-box rules, and add a GLOBAL group to end of outbounds
singbox_add_clash_modes = true
[[node_pref.rename_node]]
match = '\(?((x|X)?(\d+)(\.?\d+)?)((\s?倍率?)|(x|X))\)?'
replace = "$1x"
@@ -237,6 +240,14 @@ value = "true"
key = "clash.log_level"
value = "info"
[[template.globals]]
key = "singbox.allow_lan"
value = "true"
[[template.globals]]
key = "singbox.mixed_port"
value = "2080"
[[aliases]]
uri = "/clash"
target = "/sub?target=clash"