Skip to content

Commit

Permalink
fix: decode base64 error
Browse files Browse the repository at this point in the history
  • Loading branch information
zaigie committed Mar 14, 2024
1 parent a818ebc commit 6a20adf
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions internal/tool/rcon.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,7 @@ func executeCommand(command string) (*executor.Executor, string, error) {
if useBase64 {
decoded, err := base64.StdEncoding.DecodeString(response)
if err != nil {
logger.Warnf("decode base64 error:", err)
// 返回未解码的响应
logger.Warnf("decode base64 error: %v\n", err)
return exec, response, nil
}
response = string(decoded)
Expand Down

0 comments on commit 6a20adf

Please sign in to comment.