diff options
-rw-r--r-- | usr/local/www/diag_routes.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/local/www/diag_routes.php b/usr/local/www/diag_routes.php index ffe9061..30e4a25 100644 --- a/usr/local/www/diag_routes.php +++ b/usr/local/www/diag_routes.php @@ -66,7 +66,7 @@ include('head.inc'); </form> <?php -if ($_POST['submit'] == 'Show') { + $netstat = ($_POST['resolve'] == 'yes' ? 'netstat -rW' : 'netstat -nrW'); list($dummy, $internet, $internet6) = explode("\n\n", shell_exec($netstat)); @@ -99,7 +99,7 @@ if ($_POST['submit'] == 'Show') { } print("</table>\n"); } -} + ?> </table> |