gorcon / rcon

Source RCON Protocol implementation in Go.
MIT License
79 stars 8 forks source link

Don't send rcon request with empty command #1

Closed ganelon13 closed 5 years ago

ganelon13 commented 5 years ago
    result, err = conn.Execute("")
    if err != nil {
        fmt.Println(err)
        return
    }
    fmt.Println(result)

got response unknown command It is useless and there is no need to send a request

outdead commented 5 years ago

https://github.com/gorcon/rcon/commit/7fd58528e58b5a5a30ea68a825d86bb181df6b08