Skip to content

Commit

Permalink
luci: Sing-Box cache path change
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaorouji committed Dec 22, 2024
1 parent 33b4e56 commit 4f0e3d4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion luci-app-passwall/luasrc/passwall/util_sing-box.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1317,7 +1317,7 @@ function gen_config(var)
experimental.cache_file = {
enabled = true,
store_fakeip = true,
path = "/tmp/singbox_passwall_" .. flag .. ".db"
path = api.CACHE_PATH .. "/singbox_" .. flag .. ".db"
}
end

Expand Down
2 changes: 1 addition & 1 deletion luci-app-passwall/root/usr/share/passwall/iptables.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1276,7 +1276,7 @@ flush_ipset() {
flush_ipset_reload() {
del_firewall_rule
flush_ipset
rm -rf /tmp/singbox_passwall*
rm -rf /tmp/etc/passwall_tmp/singbox*
rm -rf /tmp/etc/passwall_tmp/smartdns*
rm -rf /tmp/etc/passwall_tmp/dnsmasq*
/etc/init.d/passwall reload
Expand Down
2 changes: 1 addition & 1 deletion luci-app-passwall/root/usr/share/passwall/nftables.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1337,7 +1337,7 @@ flush_table() {
flush_nftset_reload() {
del_firewall_rule
flush_table
rm -rf /tmp/singbox_passwall*
rm -rf /tmp/etc/passwall_tmp/singbox*
rm -rf /tmp/etc/passwall_tmp/smartdns*
rm -rf /tmp/etc/passwall_tmp/dnsmasq*
/etc/init.d/passwall reload
Expand Down

0 comments on commit 4f0e3d4

Please sign in to comment.