a
This commit is contained in:
parent
c89eddaa1c
commit
7e0c338719
|
@ -821,7 +821,7 @@ case "anime":
|
||||||
const maxHops = interaction.options.getInteger("hops") || 16;
|
const maxHops = interaction.options.getInteger("hops") || 16;
|
||||||
|
|
||||||
const { spawn } = require('child_process');
|
const { spawn } = require('child_process');
|
||||||
const tracepath = spawn('traceroute', ['-q 1', `-m ${maxHops}`, target, " | awk \'{print $1, $2, $3}\'"]);
|
const tracepath = spawn('traceroute', ['-q', '1', '-d', '-m', `${maxHops}`, target, " | awk '{print $1, $2, $3}'"]);
|
||||||
|
|
||||||
let output = '';
|
let output = '';
|
||||||
|
|
||||||
|
@ -843,6 +843,10 @@ case "anime":
|
||||||
await interaction.editReply({ embeds: [traceEmbed] });
|
await interaction.editReply({ embeds: [traceEmbed] });
|
||||||
});
|
});
|
||||||
|
|
||||||
|
tracepath.stderr.on('data', (data) => {
|
||||||
|
console.log(`stderr: ${data}`);
|
||||||
|
});
|
||||||
|
|
||||||
tracepath.on('close', async () => {
|
tracepath.on('close', async () => {
|
||||||
const finalEmbed = {
|
const finalEmbed = {
|
||||||
title: `Path to ${target} - Complete`,
|
title: `Path to ${target} - Complete`,
|
||||||
|
|
Loading…
Reference in a new issue