gorcon / rcon-cli

RCON client for executing queries on game server.
MIT License
497 stars 46 forks source link

Config File Type Specified But Ignored #30

Open FastEddy1114 opened 1 year ago

FastEddy1114 commented 1 year ago

I have run into an issue using version 0.10.3 where I have specified my environment information in the rcon.yaml file but when I execute a command using this environment I get the following error "cli: execute: auth: rcon: invalid authentication packet type response". The 7 Days to Die server console logs "ERR Exception in thread TelnetClient". I am running this on a Windows 10 PC with the 7 Days to Die dedicated server version Alpha 20.7(b1).

My rcon.yaml file looks like this:

7Days1: address: "hostremoved:portremoved" password: "fakepassword" type: "telnet" log: "rcon-7days1.log" timeout: "10s"

When I enter the following command ".\rcon.exe -e 7Days1 version" is when I get the above mentioned error of "cli: execute: auth: rcon: invalid authentication packet type response".

If I however change my command to ".\rcon.exe -e 7Days1 -t telnet version" I get no errors and I get the expected command output of "2023-06-09T13:56:56 1017.056 INF Executing command 'version' by Telnet from 127.0.0.1:65409 Game version: Alpha 20.7 (b1) Compatibility Version: Alpha 20.7 Mod Server_Info_Window: 1.0.9 Mod More Animals All Biomes Medium (A19/A20): MAAB-1.0".

It seems to me that the type parameter is being ignored in the yaml file and it is defaulting to rcon no matter what.