From 40fe97e946303af2125996d41369584e87ff7629 Mon Sep 17 00:00:00 2001 From: Caleb Case Date: Fri, 5 Jun 2020 14:00:15 -0400 Subject: [PATCH] backend/tardigrade: Set UserAgent to rclone This provides two things: * It gives Storj insight into which uplink clients are using the network. * It facilitate rclone participating in the Tardigrade Open Source Partner Program https://tardigrade.io/partner/ --- backend/tardigrade/fs.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/backend/tardigrade/fs.go b/backend/tardigrade/fs.go index 13ceaf6c3..8cd20138e 100644 --- a/backend/tardigrade/fs.go +++ b/backend/tardigrade/fs.go @@ -269,7 +269,9 @@ func (f *Fs) connect(ctx context.Context) (project *uplink.Project, err error) { fs.Debugf(f, "connecting...") defer fs.Debugf(f, "connected: %+v", err) - cfg := uplink.Config{} + cfg := uplink.Config{ + UserAgent: "rclone", + } project, err = cfg.OpenProject(ctx, f.access) if err != nil {