Skip to content

Commit abd660a

Browse files
committed
Improved php-fpm sniff
1 parent 9bece3c commit abd660a

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/app/CliTools/Console/Command/Docker/SniffCommand.php

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -135,12 +135,8 @@ public function execute(InputInterface $input, OutputInterface $output)
135135
// ##############
136136
case 'php-fpm':
137137
$output->writeln('<p>Using protocol "php-fpm"</p>');
138-
$command->setCommand('tcpdump');
139-
$command->addArgumentRaw('-nl -s0 -w- port 9000');
140-
141-
$pipeCommand = new CommandBuilder('strings', '-a');
142-
143-
$command->addPipeCommand($pipeCommand);
138+
$command->setCommand('ngrep');
139+
$command->addArgumentRaw('port 9000 -W byline');
144140
break;
145141

146142
// ##############

0 commit comments

Comments
 (0)