diag_testport.php: set verbose (#5231)

This commit is contained in:
kulikov-a 2021-09-22 17:47:52 +03:00 committed by GitHub
parent 500c82f181
commit eaf378f269
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -91,7 +91,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
$nc_args .= exec_safe(' -s %s ', $ifaddr);
}
$cmd_action = "/usr/bin/nc {$nc_args} " . exec_safe('%s %s', [$pconfig['host'], $pconfig['port']]);
$cmd_action = "/usr/bin/nc -v {$nc_args} " . exec_safe('%s %s', [$pconfig['host'], $pconfig['port']]);
$process = proc_open($cmd_action, array(array("pipe", "r"), array("pipe", "w"), array("pipe", "w")), $pipes);
if (is_resource($process)) {
$cmd_output = "# $cmd_action\n";