mirror of
https://github.com/rclone/rclone.git
synced 2025-01-24 23:28:57 +01:00
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
@ -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 New Issue
Block a user