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/
This commit is contained in:
Caleb Case
2020-06-09 14:20:28 +01:00
committed by Nick Craig-Wood
parent 7458d37d2a
commit 40fe97e946
+3 -1
View File
@@ -269,7 +269,9 @@ func (f *Fs) connect(ctx context.Context) (project *uplink.Project, err error) {
fs.Debugf(f, "connecting...") fs.Debugf(f, "connecting...")
defer fs.Debugf(f, "connected: %+v", err) defer fs.Debugf(f, "connected: %+v", err)
cfg := uplink.Config{} cfg := uplink.Config{
UserAgent: "rclone",
}
project, err = cfg.OpenProject(ctx, f.access) project, err = cfg.OpenProject(ctx, f.access)
if err != nil { if err != nil {