Use rcon instead of stdin on linux as well

This commit is contained in:
Danielv123 committed 2018-04-30 23:34:09 +02:00
1 parent 968a306c5a
commit 1e0c275968
1 file changed
+2 -2
+2 -2
View File
@@ -64,7 +64,7 @@ function messageInterface(command, callback) {
command = command.toString('utf8');
}
if(process.platform == "linux" && typeof command == "string" && serverprocess) {
if(false && process.platform == "linux" && typeof command == "string" && serverprocess) {
/*
to send to stdin, use:
serverprocess.stdin.write("/c command;\n")
@@ -381,7 +381,7 @@ write-data=__PATH__executable__/../../../instances/" + instance + "\r\n\
});
// connect to the server with rcon
if(process.platform != "linux"){
if(true || process.platform != "linux"){
// IP, port, password
client = new Rcon({
host: 'localhost',