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