mirror of
https://github.com/juanfont/headscale.git
synced 2024-11-26 08:53:05 +00:00
Trim client secret after reading from file (#1697)
Reading from file will include a line break, which results in a mismatching client secret compared to reading directly from the config.
This commit is contained in:
parent
a369d57a17
commit
b4210e2c90
1 changed files with 1 additions and 1 deletions
|
@ -590,7 +590,7 @@ func GetHeadscaleConfig() (*Config, error) {
|
|||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
oidcClientSecret = string(secretBytes)
|
||||
oidcClientSecret = strings.TrimSpace(string(secretBytes))
|
||||
}
|
||||
|
||||
return &Config{
|
||||
|
|
Loading…
Reference in a new issue