Skip to content

Commit

Permalink
feat(subscribe): drop removed config from node
Browse files Browse the repository at this point in the history
  • Loading branch information
1715173329 authored Sep 3, 2024
1 parent 1415f3b commit c4351da
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion root/etc/homeproxy/scripts/update_subscriptions.uc
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,10 @@ function main() {
log(sprintf('Removing node: %s.', cfg.label || cfg['name']));
} else {
map(keys(node_cache[cfg.grouphash][cfg['.name']]), (v) => {
uci.set(uciconfig, cfg['.name'], v, node_cache[cfg.grouphash][cfg['.name']][v]);
if (v in node_cache[cfg.grouphash][cfg['.name']])
uci.set(uciconfig, cfg['.name'], v, node_cache[cfg.grouphash][cfg['.name']][v]);
else
uci.delete(uciconfig, cfg['.name'], v);
});
node_cache[cfg.grouphash][cfg['.name']].isExisting = true;
}
Expand Down

0 comments on commit c4351da

Please sign in to comment.