mirror of
https://github.com/juanfont/headscale.git
synced 2024-11-29 18:33:05 +00:00
Fix warning on success
This commit is contained in:
parent
5fe6538c02
commit
70ecda6fd1
1 changed files with 6 additions and 4 deletions
10
app.go
10
app.go
|
@ -194,10 +194,12 @@ func NewHeadscale(cfg *Config) (*Headscale, error) {
|
||||||
|
|
||||||
if cfg.OIDC.Issuer != "" {
|
if cfg.OIDC.Issuer != "" {
|
||||||
err = app.initOIDC()
|
err = app.initOIDC()
|
||||||
if err != nil && cfg.OIDC.OnlyStartIfOIDCIsAvailable {
|
if err != nil {
|
||||||
return nil, err
|
if cfg.OIDC.OnlyStartIfOIDCIsAvailable {
|
||||||
} else {
|
return nil, err
|
||||||
log.Warn().Err(err).Msg("failed to set up OIDC provider, falling back to CLI based authentication")
|
} else {
|
||||||
|
log.Warn().Err(err).Msg("failed to set up OIDC provider, falling back to CLI based authentication")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue