Only enable RCON by default on Windows

This commit is contained in:
timvisee 2021-11-22 17:57:28 +01:00
parent d5c854d16f
commit f95682fcd5
No known key found for this signature in database
GPG Key ID: B8DB720BC383E172
2 changed files with 2 additions and 2 deletions

View File

@ -147,7 +147,7 @@ command = "java -Xmx1G -Xms1G -jar server.jar --nogui"
[rcon]
# Enable sleeping server through RCON.
# Must be enabled on Windows.
#enabled = true
#enabled = false # default: false, true on Windows
# Server RCON port. Must differ from public and server port.
#port = 25575

View File

@ -418,7 +418,7 @@ pub struct Rcon {
impl Default for Rcon {
fn default() -> Self {
Self {
enabled: true,
enabled: cfg!(windows),
port: 25575,
password: "".into(),
randomize_password: true,