Граф коммитов

5 Коммитов

Автор SHA1 Сообщение Дата
Steven Hartland e3d7149bf1
fix: race conditions in tests (#38)
Fix the race conditions in test and simplify the use of newServer.

Fix race on socket close with data reads. This ignores connection reset
by peer errors when a quit has already successfully been processed.

Handle duplicate closes due to clean up in ssh mux to prevent spurious
invalid failures.

Also:
* Fix missing t.Helper() and remove nolint directives.
* Remove some more unneeded test server == nil checks.
* Remove unneeded sshConn from sshServerShell.
* Update dependencies.

Co-authored-by: HalloTschuess <hallo.ich.f@gmail.com>
2022-12-04 19:38:52 +00:00
HalloTschuess a81b447526
feat: add support for ssh connections (#35)
Add support for connecting to a Teamspeak server over SSH
with the new client option SSH(...).

This is a more secure than the legacy method so should be used
where possible.
2022-12-01 15:25:52 +00:00
Steven Hartland 5ab781c721
chore: enable github actions validation (#36)
Enable github actions validation of code and remove travis build status
from README.md as travis is no longer in use.

Fix lint errors from gofumpt, this includes switching from []struct
with a name to map[string]struct for tests, which results in clearer
 subtest definition.

Also:
* Remove deprecated linters
* Enabling new useful linters ones applying the needed fixes.
* Use bash for cache path step to prevent different commands from
  being needed on Windows.
2022-11-30 11:22:47 +00:00
Steven Hartland fc69b9ea90 Added whoami command support
Added support for the whoami command which returns information about the current connection.

Credit goes to @thannaske for the original versions of this.

Also:
* Corrected typo in the test name for useport.
2017-11-30 16:08:59 +00:00
Steven Hartland 8881492360 Initial TeamSpeak 3 ServerQuery client
Initial version of the TeamSpeak 3 ServerQuery client with function command support for:
Basic: Login, Logout, Version, Use, UsePort
Server: List, IDGetByPort, Info, Create, Edit, Delete, Start, Stop, GroupList, PrivilegeKeyList, PrivilegeKeyAdd

All commands are support via flexible command and argument processing, including automatic decoding of returned data.
2017-07-13 13:58:48 +00:00