Fix - delete old nftset form config on startup

Signed-off-by: Rob White <rob@blue-wave.net>
This commit is contained in:
Rob White
2025-08-25 09:25:10 +01:00
parent 2f88084f42
commit 285f15a3bc

View File

@@ -1539,6 +1539,8 @@ nft_set () {
else
# OpenWrt
ucicmd="del dhcp.nds_$nftsetname"
echo $ucicmd | uci -q batch
ucicmd="set dhcp.nds_$nftsetname='ipset'"
echo $ucicmd | uci -q batch
ucicmd="add_list dhcp.nds_$nftsetname.name='$nftsetname'"