From 4d2ef26bc8fd705a9b5ca3e7a125568a75a6fa4b Mon Sep 17 00:00:00 2001 From: Yury Kossakovsky Date: Sat, 20 Dec 2025 17:12:19 -0700 Subject: [PATCH] fix(gost): generate proxy url in wizard after upstream input wizard runs after generate_secrets, so GOST_PROXY_URL was not being created when user selected gost during update. --- scripts/04_wizard.sh | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/scripts/04_wizard.sh b/scripts/04_wizard.sh index fd8a40b..3f66fb2 100755 --- a/scripts/04_wizard.sh +++ b/scripts/04_wizard.sh @@ -218,9 +218,18 @@ if [ $gost_selected -eq 1 ]; then "$EXISTING_UPSTREAM") || true if [ -n "$GOST_UPSTREAM_INPUT" ]; then - # Save to .env file + # Save upstream proxy to .env file write_env_var "GOST_UPSTREAM_PROXY" "$GOST_UPSTREAM_INPUT" log_info "Gost upstream proxy configured: $GOST_UPSTREAM_INPUT" + + # Also generate GOST_PROXY_URL (needed because wizard runs AFTER generate_secrets) + GOST_USER=$(read_env_var "GOST_USERNAME") + GOST_PASS=$(read_env_var "GOST_PASSWORD") + if [ -n "$GOST_USER" ] && [ -n "$GOST_PASS" ]; then + GOST_PROXY_URL="http://${GOST_USER}:${GOST_PASS}@gost:8080" + write_env_var "GOST_PROXY_URL" "$GOST_PROXY_URL" + log_info "Gost proxy URL generated: http://***:***@gost:8080" + fi else # Remove gost from selected profiles if no upstream provided tmp=()