"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files
Go azure-blobazure-blob-storageazure-filesbackblaze-b2cloud-storagedropboxencryptionftpfuse-filesystemgogolanggoogle-cloud-storagegoogle-driveonedriveopenstack-swiftrclones3sftpsyncwebdav
rc: fix default value of --metrics-addr
Nick Craig-Wood3af757e26d1d
diff --git a/fs/rc/rc.go b/fs/rc/rc.goindex 9c083f3b7..e41ac9546 100644--- a/fs/rc/rc.go+++ b/fs/rc/rc.go@@ -85,7 +85,7 @@ var OptionsInfo = fs.Options{{Groups: "RC",}, {Name: "metrics_addr",- Default: []string{""},+ Default: []string{},Help: "IPaddress:Port or :Port to bind metrics server to",Groups: "Metrics",}}.diff --git a/fs/rc/rcserver/metrics.go b/fs/rc/rcserver/metrics.goindex 502566f47..367e6aeab 100644--- a/fs/rc/rcserver/metrics.go+++ b/fs/rc/rcserver/metrics.go@@ -37,7 +37,7 @@ func init() {// If the server wasn't configured the *Server returned may be nilfunc MetricsStart(ctx context.Context, opt *rc.Options) (*MetricsServer, error) {jobs.SetOpt(opt) // set the defaults for jobs- if opt.MetricsHTTP.ListenAddr[0] != "" {+ if len(opt.MetricsHTTP.ListenAddr) > 0 {// Serve on the DefaultServeMux so can have global registrations appears, err := newMetricsServer(ctx, opt)if err != nil {