feat(GODT-2673): Use NoClient as UserAgent without any client connected and...

This commit is contained in:
Romain Le Jeune
2023-06-01 15:15:37 +00:00
parent c4dc829e6d
commit 802f7dbc67
9 changed files with 122 additions and 10 deletions

View File

@ -24,6 +24,7 @@ import (
"github.com/Masterminds/semver/v3"
"github.com/ProtonMail/proton-bridge/v3/internal/updater"
"github.com/ProtonMail/proton-bridge/v3/internal/useragent"
"github.com/sirupsen/logrus"
)
@ -245,7 +246,7 @@ func (vault *Vault) GetLastUserAgent() string {
// Handle case where there may be no value.
if len(v) == 0 {
v = DefaultUserAgent
v = useragent.DefaultUserAgent
}
return v