From: Kuan-Yi Li Date: Wed, 4 Feb 2026 11:36:34 +0000 (+0800) Subject: luci-app-tailscale-community: fix default state file path X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=3dda99b79d34f4b91089754ae77cb926a6005d50;p=project%2Fluci.git luci-app-tailscale-community: fix default state file path Align default state file path with `tailscale` package. When `tailscale.settings` doesn't exist in UCI, this LuCI App tries to create one with settings parsed from the state file. The parser first looks for `tailscale.settings.state_file` but this value sure wouldn't exist under the circumstances and will fall back to default path. Fix the default path for the parser to locate the state file properly. Signed-off-by: Kuan-Yi Li --- diff --git a/applications/luci-app-tailscale-community/root/usr/share/rpcd/ucode/tailscale.uc b/applications/luci-app-tailscale-community/root/usr/share/rpcd/ucode/tailscale.uc index 792f7c346a..f1e9875949 100644 --- a/applications/luci-app-tailscale-community/root/usr/share/rpcd/ucode/tailscale.uc +++ b/applications/luci-app-tailscale-community/root/usr/share/rpcd/ucode/tailscale.uc @@ -95,7 +95,7 @@ methods.get_settings = { call: function() { let settings = {}; uci.load('tailscale'); - let state_file_path = uci.get('tailscale', 'settings', 'state_file') || "/var/lib/tailscale/tailscaled.state"; + let state_file_path = uci.get('tailscale', 'settings', 'state_file') || "/etc/tailscale/tailscaled.state"; if (access(state_file_path)) { try { let state_content = readfile(state_file_path);