forked from TrueCloudLab/rclone
lib/oauthutil: fix Google drive oauth process
The problem was introduced by the code refactoring in
11da2a6c9b
This commit is contained in:
parent
5cce74d630
commit
2030dc13b2
1 changed files with 1 additions and 1 deletions
|
@ -290,7 +290,7 @@ func doConfig(id, name string, oauthConfig *oauth2.Config, offline bool, opts []
|
||||||
|
|
||||||
// Detect whether we should use internal web server
|
// Detect whether we should use internal web server
|
||||||
useWebServer := false
|
useWebServer := false
|
||||||
switch RedirectURL {
|
switch oauthConfig.RedirectURL {
|
||||||
case RedirectURL, RedirectPublicURL, RedirectLocalhostURL:
|
case RedirectURL, RedirectPublicURL, RedirectLocalhostURL:
|
||||||
useWebServer = true
|
useWebServer = true
|
||||||
if automatic {
|
if automatic {
|
||||||
|
|
Loading…
Reference in a new issue