mirror of
https://github.com/itdoginfo/podkop.git
synced 2026-01-27 12:50:37 +03:00
refactor: rename 'yacd' to 'enable_yacd'
This commit is contained in:
@@ -167,7 +167,7 @@ function createSettingsContent(section) {
|
|||||||
|
|
||||||
o = section.option(
|
o = section.option(
|
||||||
form.Flag,
|
form.Flag,
|
||||||
'yacd',
|
'enable_yacd',
|
||||||
_('Enable YACD'),
|
_('Enable YACD'),
|
||||||
`<a href="${main.getClashApiUrl()}/ui" target="_blank">${main.getClashApiUrl()}/ui</a>`,
|
`<a href="${main.getClashApiUrl()}/ui" target="_blank">${main.getClashApiUrl()}/ui</a>`,
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -1050,10 +1050,10 @@ sing_box_configure_experimental() {
|
|||||||
config_get cache_file "settings" "cache_path" "/tmp/sing-box/cache.db"
|
config_get cache_file "settings" "cache_path" "/tmp/sing-box/cache.db"
|
||||||
config=$(sing_box_cm_configure_cache_file "$config" true "$cache_file" true)
|
config=$(sing_box_cm_configure_cache_file "$config" true "$cache_file" true)
|
||||||
|
|
||||||
local yacd_enabled external_controller_ui
|
local enable_yacd external_controller_ui
|
||||||
config_get_bool yacd_enabled "settings" "yacd" 0
|
config_get_bool enable_yacd "settings" "enable_yacd" 0
|
||||||
log "Configuring Clash API"
|
log "Configuring Clash API"
|
||||||
if [ "$yacd_enabled" -eq 1 ]; then
|
if [ "$enable_yacd" -eq 1 ]; then
|
||||||
log "YACD is enabled, enabling Clash API with downloadable YACD" "debug"
|
log "YACD is enabled, enabling Clash API with downloadable YACD" "debug"
|
||||||
local external_controller_ui="ui"
|
local external_controller_ui="ui"
|
||||||
config=$(sing_box_cm_configure_clash_api "$config" "$SB_CLASH_API_CONTROLLER" "$external_controller_ui")
|
config=$(sing_box_cm_configure_clash_api "$config" "$SB_CLASH_API_CONTROLLER" "$external_controller_ui")
|
||||||
|
|||||||
Reference in New Issue
Block a user