gorcon / rcon-cli

RCON client for executing queries on game server.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Public IP support for config

camjac251 opened this issue · comments

I am having trouble with getting a public IP to work on my config. It works when I call the variables directly but when it's in the config, it tries to map from my local IP I guess.

Here's what my config looks like

default:
  address: "123.123.123.0:28016"
  password: "password"
  type: "rust"

and the output when I try running the default and manually

C:\Users\User>rcon -c status
read tcp 192.168.1.2:4719->123.123.123.0:28016: i/o timeout
C:\Users\User>rcon -a 123.123.123.0:28016 -p password -t web -c status
hostname: hi there
rest here

You filled the wrong value in the config for the type parameter. There you need to specify the value web, it is equivalent to the -t web flag when starting the binary.

I will add configuration validation so that rcon will throw an error message if a value is filled that it does not know.

Oh that is a big oof on my part. I had web initially but I guess during my troubleshooting it went back to the incorrect value. Just tested now with it set to web and it works perfectly. Thank you