From 97161856e799301a84960409a788d6b6ce0438cb Mon Sep 17 00:00:00 2001 From: Broque Thomas Date: Tue, 6 Jan 2026 11:02:38 -0800 Subject: [PATCH] Update web_server.py --- web_server.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/web_server.py b/web_server.py index 99cd731e..79ff1fd1 100644 --- a/web_server.py +++ b/web_server.py @@ -2627,6 +2627,10 @@ def auth_spotify(): host = request.host.split(':')[0] is_remote = host not in ['127.0.0.1', 'localhost'] is_docker = os.path.exists('/.dockerenv') + + # If in Docker and accessing via 127.0.0.1, recommend localhost + if is_docker and host == '127.0.0.1': + host = 'localhost' if is_remote or is_docker: # Show instructions for remote/docker access