forked from TrueCloudLab/rclone
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:
parent
7458d37d2a
commit
40fe97e946
1 changed files with 3 additions and 1 deletions
|
@ -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 {
|
||||||
|
|
Loading…
Reference in a new issue