mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-17 23:56:56 +00:00
feat(GODT-2673): Use NoClient as UserAgent without any client connected and...
This commit is contained in:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user