From 01e9274f7b232089ffb75b62c17e7d9752181512 Mon Sep 17 00:00:00 2001 From: Quentin McGaw Date: Tue, 18 Nov 2025 21:26:53 +0000 Subject: [PATCH] fix(proton): giving proton password is not mandatory --- internal/configuration/settings/updater.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/internal/configuration/settings/updater.go b/internal/configuration/settings/updater.go index d5183fd4..7cc50f06 100644 --- a/internal/configuration/settings/updater.go +++ b/internal/configuration/settings/updater.go @@ -157,8 +157,10 @@ func (u *Updater) read(r *reader.Reader) (err error) { u.ProtonEmail = r.Get("UPDATER_PROTONVPN_EMAIL") if u.ProtonEmail == nil { protonUsername := r.String("UPDATER_PROTONVPN_USERNAME", reader.IsRetro("UPDATER_PROTONVPN_EMAIL")) - protonEmail := protonUsername + "@protonmail.com" - u.ProtonEmail = &protonEmail + if protonUsername != "" { + protonEmail := protonUsername + "@protonmail.com" + u.ProtonEmail = &protonEmail + } } u.ProtonPassword = r.Get("UPDATER_PROTONVPN_PASSWORD")