Commit c130e4a6 authored by Vitaly Lipatov's avatar Vitaly Lipatov

route-update: add vlog for IP-only list detection

parent 1dcd7190
......@@ -528,6 +528,7 @@ resolve_list_file()
cat_expanded "$_f" | grep -v '^#' | grep -v '^$' | $_resolve_func | \
grep -v '^#' | grep -v '^$' >> "$_resolved_new.tmp"
else
vlog "$_tag$_label IP-only list, skipping DNS resolve"
if [ "$_ipcmd" = "ip -6" ] ; then
grep -v '^#' "$_f" | grep -v '^$' | grep ':' >> "$_resolved_new.tmp" || true
else
......@@ -567,7 +568,7 @@ resolve_list_file()
mv "${_resolved_new}.merged" "$_resolved_new"
vlog "$_tag$_label resolve history: $(ls "$history_dir" | wc -l) snapshots, $(wc -l < "$_resolved_new") unique IPs"
else
vlog "$_tag$_label IP-only list, skipping history merge"
vlog "$_tag$_label IP-only list, no history merge needed"
fi
# Detect volatile domains (IPv4 and IPv6)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment