From 1e6b555bfafae9ddec9c8dc2aafbf71b5084f57c Mon Sep 17 00:00:00 2001 From: Andrey Petelin Date: Fri, 10 Oct 2025 19:29:16 +0500 Subject: [PATCH] refactor: rename 'yacd' to 'enable_yacd' --- .../htdocs/luci-static/resources/view/podkop/settings.js | 2 +- podkop/files/usr/bin/podkop | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/luci-app-podkop/htdocs/luci-static/resources/view/podkop/settings.js b/luci-app-podkop/htdocs/luci-static/resources/view/podkop/settings.js index bfc5fbf..31b6b5e 100644 --- a/luci-app-podkop/htdocs/luci-static/resources/view/podkop/settings.js +++ b/luci-app-podkop/htdocs/luci-static/resources/view/podkop/settings.js @@ -167,7 +167,7 @@ function createSettingsContent(section) { o = section.option( form.Flag, - 'yacd', + 'enable_yacd', _('Enable YACD'), `${main.getClashApiUrl()}/ui`, ); diff --git a/podkop/files/usr/bin/podkop b/podkop/files/usr/bin/podkop index cfeeeb9..4342d72 100755 --- a/podkop/files/usr/bin/podkop +++ b/podkop/files/usr/bin/podkop @@ -1050,10 +1050,10 @@ sing_box_configure_experimental() { config_get cache_file "settings" "cache_path" "/tmp/sing-box/cache.db" config=$(sing_box_cm_configure_cache_file "$config" true "$cache_file" true) - local yacd_enabled external_controller_ui - config_get_bool yacd_enabled "settings" "yacd" 0 + local enable_yacd external_controller_ui + config_get_bool enable_yacd "settings" "enable_yacd" 0 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" local external_controller_ui="ui" config=$(sing_box_cm_configure_clash_api "$config" "$SB_CLASH_API_CONTROLLER" "$external_controller_ui")