"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
Add RedirectLocalhostURL for another form of redirect URL
Nick Craig-Wood5023050d9543
diff --git a/oauthutil/oauthutil.go b/oauthutil/oauthutil.goindex 4bb5d699e..6684a5547 100644--- a/oauthutil/oauthutil.go+++ b/oauthutil/oauthutil.go@@ -41,6 +41,9 @@ const (// RedirectPublicURL is redirect to local webserver when active with public nameRedirectPublicURL = "http://localhost.rclone.org:" + bindPort + "/"++ // RedirectLocalhostURL is redirect to local webserver when active with localhost+ RedirectLocalhostURL = "http://localhost:" + bindPort + "/")// oldToken contains an end-user's tokens.@@ -196,7 +199,7 @@ func Config(name string, config *oauth2.Config) error {// Detect whether we should use internal web serveruseWebServer := falseswitch config.RedirectURL {- case RedirectURL, RedirectPublicURL:+ case RedirectURL, RedirectPublicURL, RedirectLocalhostURL:useWebServer = truecase TitleBarRedirectURL:fmt.Printf("Use auto config?\n")