From 2368544dc1312d51eb1b97ae4b1a6c839267c668 Mon Sep 17 00:00:00 2001 From: aclist <92275929+aclist@users.noreply.github.com> Date: Sun, 29 Oct 2023 11:20:43 +0900 Subject: [PATCH] fix: use ipv4 --- dzgui.sh | 4 ++-- news | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dzgui.sh b/dzgui.sh index e446a8e..c47af07 100755 --- a/dzgui.sh +++ b/dzgui.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash set -o pipefail -version=3.3.16 +version=3.3.17 aid=221100 game="dayz" @@ -1298,7 +1298,7 @@ local_latlon(){ if [[ -z $(command -v dig) ]]; then local local_ip=$(curl -Ls "https://ipecho.net/plain") else - local local_ip=$(dig +short myip.opendns.com @resolver1.opendns.com) + local local_ip=$(dig -4 +short myip.opendns.com @resolver1.opendns.com) fi local url="http://ip-api.com/json/$local_ip" local res=$(curl -Ls "$url" | jq -r '"\(.lat),\(.lon)"') diff --git a/news b/news index 04183c1..a69e48f 100644 --- a/news +++ b/news @@ -1 +1 @@ -NEWS: If you are using Fedora 38, please update to zenity-3.99.1-1 to use DZGUI. +NEWS: Fix: use IPV4 when polling server coordinates