From 7e45cb0fa2194b5e7d7d80ff4f6ca7deb7119158 Mon Sep 17 00:00:00 2001 From: aclist <92275929+aclist@users.noreply.github.com> Date: Sat, 25 Oct 2025 11:37:48 +0900 Subject: [PATCH] chore: backport funcs file changes from testing --- dzgui.sh | 2 +- helpers/funcs | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/dzgui.sh b/dzgui.sh index e3db876..27edcb5 100755 --- a/dzgui.sh +++ b/dzgui.sh @@ -615,7 +615,7 @@ fetch_helpers_by_sum(){ [[ -f "$config_file" ]] && source "$config_file" declare -A sums sums=( - ["funcs"]="65134f86b7c9e14173e05d8e3ebea101" + ["funcs"]="6ae3ead7034dc8e7543472bddee75c63" ["query_v2.py"]="55d339ba02512ac69de288eb3be41067" ["servers.py"]="ed442c3aecf33f777d59dcf53650d263" ["ui.py"]="f03879f088ad074f2ce3c92607c30202" diff --git a/helpers/funcs b/helpers/funcs index dbb6ab2..52c5409 100755 --- a/helpers/funcs +++ b/helpers/funcs @@ -369,6 +369,10 @@ local_latlon(){ get_dist(){ shift local given_ip="$1" + if [[ ! -f $_cache_coords ]]; then + printf "Unknown" + return + fi readarray -t coords < "$_cache_coords" readarray -t n < <(<<< "$given_ip" awk 'BEGIN{RS="."}{$1=$1}1')