fix(multiplayer): accidentally enabled relay.
This commit is contained in:
@@ -97,8 +97,7 @@ public final class MultiplayerManager {
|
|||||||
"--token", StringUtils.isBlank(token) ? "new" : token,
|
"--token", StringUtils.isBlank(token) ? "new" : token,
|
||||||
"--id", peer,
|
"--id", peer,
|
||||||
"--local", String.format("0.0.0.0:%d", localPort),
|
"--local", String.format("0.0.0.0:%d", localPort),
|
||||||
"--remote", String.format("0.0.0.0:%d", remotePort),
|
"--remote", String.format("0.0.0.0:%d", remotePort)};
|
||||||
"--mode", "relay"};
|
|
||||||
Process process;
|
Process process;
|
||||||
try {
|
try {
|
||||||
process = new ProcessBuilder()
|
process = new ProcessBuilder()
|
||||||
@@ -154,8 +153,7 @@ public final class MultiplayerManager {
|
|||||||
|
|
||||||
String[] commands = new String[]{exe.toString(),
|
String[] commands = new String[]{exe.toString(),
|
||||||
"--token", StringUtils.isBlank(token) ? "new" : token,
|
"--token", StringUtils.isBlank(token) ? "new" : token,
|
||||||
"--allows", String.format("0.0.0.0:%d/0.0.0.0:%d", port, server.getPort()),
|
"--allows", String.format("0.0.0.0:%d/0.0.0.0:%d", port, server.getPort())};
|
||||||
"--mode", "relay"};
|
|
||||||
Process process = new ProcessBuilder()
|
Process process = new ProcessBuilder()
|
||||||
.command(commands)
|
.command(commands)
|
||||||
.start();
|
.start();
|
||||||
|
|||||||
Reference in New Issue
Block a user