From fbd1a355d5293a46924a7a1ed1f8ec268b6c55e2 Mon Sep 17 00:00:00 2001
From: aclist <92275929+aclist@users.noreply.github.com>
Date: Sat, 5 Apr 2025 09:03:29 +0900
Subject: [PATCH] chore: drop pre-boot api check

---
 CHANGELOG.md | 4 ++++
 dzgui.sh     | 7 -------
 2 files changed, 4 insertions(+), 7 deletions(-)

diff --git a/CHANGELOG.md b/CHANGELOG.md
index 028099d..7dacc35 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,9 @@
 # Changelog
 
+## [5.6.6] 2024-04-04
+## Dropped
+- Removed extraneous pre-boot API checks that could cause error messages to be printed if the user had not set up an API key yet
+
 ## [5.6.5] 2024-03-04
 ## Fixed
 - Livonia server results being dropped from batch queries
diff --git a/dzgui.sh b/dzgui.sh
index 650d17e..e19a4b5 100755
--- a/dzgui.sh
+++ b/dzgui.sh
@@ -876,21 +876,14 @@ get_response_code(){
     curl -Ls -I -o /dev/null -w "%{http_code}" "$url"
 }
 test_connection(){
-    source "$config_file"
     declare -A hr
     local res1
     local res2
     local str="No connection could be established to the remote server"
     hr=(
-        ["steampowered.com"]="https://api.steampowered.com/IGameServersService/GetServerList/v1/?key=$steam_api"
         ["github.com"]="https://github.com/$author"
         ["codeberg.org"]="https://codeberg.org/$author"
     )
-    # steam API is mandatory, except on initial setup
-    if [[ -n $steam_api ]]; then
-        res=$(get_response_code "${hr["steampowered.com"]}")
-        [[ $res -ne 200 ]] && raise_error_and_quit "$str ("steampowered.com")"
-    fi
 
     res=$(get_response_code "${hr["github.com"]}")
     if [[ $res -ne 200 ]]; then