Skip to content

Commit 6b9663d

Browse files
authored
fix(firewall): ignore backup files (#97)
Do not read uci backup filed created by opkg
1 parent b5e87a4 commit 6b9663d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/nethsec/firewall/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -541,7 +541,7 @@ def get_all_linked(uci, link):
541541

542542
ret = dict()
543543
for config in uci.list_configs():
544-
if config == "templates":
544+
if config == "templates" or config.endswith(".backup"):
545545
continue
546546
records = utils.get_all_by_option(uci, config, 'ns_link', link, deep = False)
547547
ret[config] = records

0 commit comments

Comments
 (0)