TeamSpeak-Systems / teamspeak-linux-docker-images

docker build files for TeamSpeak servers
Other
114 stars 52 forks source link

query_protocols can never be empty #90

Open func0der opened 2 years ago

func0der commented 2 years ago

The documentation tells us, that query_protocols can be empty to deactivate the ServerQuery interface.

Due to the implementation of parameter expansion here, it can not be set to an empty value via the Docker ENVIRONMENT.

    query_protocols=${TS3SERVER_QUERY_PROTOCOLS:-raw}

I do not know what you preferred way of setting this value would be, but there has to be a dedicated empty vs. unset check here.

Workaround for now

You can still deactivate the ServerQuery interface by setting the value to something bad like none, but that results in an error in the logs on every restart of the server:

2022-02-18 22:59:56.717130|ERROR   |Query         |   |invalid value 'none' in query_protocols.