"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
oauthutil: add RedirectPublicURL
Nick Craig-Wood4ed8836a71ab
diff --git a/oauthutil/oauthutil.go b/oauthutil/oauthutil.goindex 10cb61d55..4bb5d699e 100644--- a/oauthutil/oauthutil.go+++ b/oauthutil/oauthutil.go@@ -30,11 +30,17 @@ const (// prompting the user to copy the code and paste it in the application.TitleBarRedirectURL = "urn:ietf:wg:oauth:2.0:oob"- // BindAddress is binding for local webserver when active- bindAddress = "127.0.0.1:53682"+ // bindPort is the port that we bind the local webserver to+ bindPort = "53682"++ // bindAddress is binding for local webserver when active+ bindAddress = "127.0.0.1:" + bindPort// RedirectURL is redirect to local webserver when activeRedirectURL = "http://" + bindAddress + "/"++ // RedirectPublicURL is redirect to local webserver when active with public name+ RedirectPublicURL = "http://localhost.rclone.org:" + bindPort + "/")// oldToken contains an end-user's tokens.@@ -190,7 +196,7 @@ func Config(name string, config *oauth2.Config) error {// Detect whether we should use internal web serveruseWebServer := falseswitch config.RedirectURL {- case RedirectURL:+ case RedirectURL, RedirectPublicURL:useWebServer = truecase TitleBarRedirectURL:fmt.Printf("Use auto config?\n")