mirror of
https://github.com/rclone/rclone.git
synced 2025-03-14 00:16:24 +08:00
lib/oauthutil: fix Google drive oauth process
The problem was introduced by the code refactoring in 11da2a6c9bd1a903a7737e9314617810f1903c5c
This commit is contained in:
parent
5cce74d630
commit
2030dc13b2
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user