Skip to content

"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files

lib/oauthutil: fix Google drive oauth process

Nick Craig-Wood2030dc13b269
diff --git a/lib/oauthutil/oauthutil.go b/lib/oauthutil/oauthutil.go
index 8c65209a4..5febfe066 100644
--- a/lib/oauthutil/oauthutil.go
+++ b/lib/oauthutil/oauthutil.go
@@ -290,7 +290,7 @@ func doConfig(id, name string, oauthConfig *oauth2.Config, offline bool, opts []
// Detect whether we should use internal web server
useWebServer := false
- switch RedirectURL {
+ switch oauthConfig.RedirectURL {
case RedirectURL, RedirectPublicURL, RedirectLocalhostURL:
useWebServer = true
if automatic {