mirror of
https://github.com/fankes/beszel.git
synced 2025-10-18 17:29:28 +08:00
strip whitespace from TOKEN_FILE
(#984)
This commit is contained in:
@@ -85,7 +85,7 @@ func getToken() (string, error) {
|
||||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
return string(tokenBytes), nil
|
||||
return strings.TrimSpace(string(tokenBytes)), nil
|
||||
}
|
||||
|
||||
// getOptions returns the WebSocket client options, creating them if necessary.
|
||||
|
Reference in New Issue
Block a user