strip whitespace from TOKEN_FILE (#984)

This commit is contained in:
henrygd
2025-09-12 12:59:53 -04:00
parent efa37b2312
commit 8da1ded73e
2 changed files with 22 additions and 1 deletions

View File

@@ -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.