mirror of
https://github.com/timvisee/lazymc.git
synced 2025-05-19 12:50:23 -07:00
Only enable RCON by default on Windows
This commit is contained in:
parent
d5c854d16f
commit
f95682fcd5
@ -147,7 +147,7 @@ command = "java -Xmx1G -Xms1G -jar server.jar --nogui"
|
|||||||
[rcon]
|
[rcon]
|
||||||
# Enable sleeping server through RCON.
|
# Enable sleeping server through RCON.
|
||||||
# Must be enabled on Windows.
|
# Must be enabled on Windows.
|
||||||
#enabled = true
|
#enabled = false # default: false, true on Windows
|
||||||
|
|
||||||
# Server RCON port. Must differ from public and server port.
|
# Server RCON port. Must differ from public and server port.
|
||||||
#port = 25575
|
#port = 25575
|
||||||
|
@ -418,7 +418,7 @@ pub struct Rcon {
|
|||||||
impl Default for Rcon {
|
impl Default for Rcon {
|
||||||
fn default() -> Self {
|
fn default() -> Self {
|
||||||
Self {
|
Self {
|
||||||
enabled: true,
|
enabled: cfg!(windows),
|
||||||
port: 25575,
|
port: 25575,
|
||||||
password: "".into(),
|
password: "".into(),
|
||||||
randomize_password: true,
|
randomize_password: true,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user