mirror of
https://github.com/asdlokj1qpi233/subconverter.git
synced 2025-10-28 04:12:49 +00:00
Enhancements
Fix base sing-box configuration. Add support for adding Clash modes to sing-box configs. Optimize codes.
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user