settings: Add new options on "Reset settings" dialog

This commit is contained in:
remittor
2026-01-16 19:59:40 +03:00
parent 4aca2043c1
commit 15a6f9e5ae
3 changed files with 41 additions and 1 deletions

View File

@@ -13,6 +13,11 @@ opt_strat=$2
if echo "$opt_flags" | grep -q "(reset_ipset)"; then
restore_all_ipset_cfg
fi
if echo "$opt_flags" | grep -q "(erase_autohostlist)"; then
: > $ZAPRET_BASE/ipset/zapret-hosts-auto.txt
: > $ZAPRET_BASE/ipset/zapret-hosts-auto-debug.log
fi
create_default_cfg "$opt_flags" "$opt_strat"