summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--internal/transport/controller.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/internal/transport/controller.go b/internal/transport/controller.go
index e7a07016f..f5cb7a829 100644
--- a/internal/transport/controller.go
+++ b/internal/transport/controller.go
@@ -59,7 +59,8 @@ type controller struct {
// NewController returns an implementation of the Controller interface for creating new transports
func NewController(db db.DB, federatingDB federatingdb.DB, clock pub.Clock, client pub.HttpClient) Controller {
applicationName := config.GetApplicationName()
- host := config.GetHost()
+ host := config.GetAccountDomain()
+ proto := config.GetProtocol()
version := config.GetSoftwareVersion()
c := &controller{
@@ -69,7 +70,7 @@ func NewController(db db.DB, federatingDB federatingdb.DB, clock pub.Clock, clie
client: client,
trspCache: cache.New[string, *transport](0, 100, 0),
badHosts: cache.New[string, struct{}](0, 1000, 0),
- userAgent: fmt.Sprintf("%s; %s (gofed/activity gotosocial-%s)", applicationName, host, version),
+ userAgent: fmt.Sprintf("%s (+%s://%s) gotosocial/%s", applicationName, proto, host, version),
}
// Transport cache has TTL=1hr freq=1min