mirror of
https://github.com/onyx-and-iris/q3rcon.git
synced 2026-04-20 08:43:31 +00:00
Compare commits
2 Commits
v0.0.2
...
65ab17b9c9
| Author | SHA1 | Date | |
|---|---|---|---|
| 65ab17b9c9 | |||
| d180c455a3 |
@@ -15,5 +15,5 @@ Before any major/minor/patch bump all unit tests will be run to verify they pass
|
|||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
|
||||||
- Initial release, package implements Rcon using the Q3 procotocl.
|
- Initial release, package implements Rcon using the Q3 protocol.
|
||||||
- A basic CLI implementation accepting configuration flags.
|
- A basic CLI implementation accepting configuration flags.
|
||||||
|
|||||||
@@ -86,7 +86,9 @@ func (r Rcon) Send(cmd string) (string, error) {
|
|||||||
|
|
||||||
respChan := make(chan string)
|
respChan := make(chan string)
|
||||||
errChan := make(chan error)
|
errChan := make(chan error)
|
||||||
|
|
||||||
go r.listen(timeout, respChan, errChan)
|
go r.listen(timeout, respChan, errChan)
|
||||||
|
|
||||||
_, err := r.conn.Write(r.request.Encode(cmd))
|
_, err := r.conn.Write(r.request.Encode(cmd))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return "", err
|
return "", err
|
||||||
|
|||||||
Reference in New Issue
Block a user