diff --git a/index.php b/index.php index b0985c3..422988e 100644 --- a/index.php +++ b/index.php @@ -178,9 +178,9 @@ if($_REQUEST['v4table'] == '1') { - echo "

routes

"; + echo "

ipv4 routing table

"; echo ''; - $v4routen = shell_exec('ip r s t fff'); + $v4routen = shell_exec('ip r s t $(grep import-table /etc/babeld.conf | cut -f2 -d" ")'); $v4route = explode(PHP_EOL, $v4routen); for($i = 0; $i < count($v4route); ++$i) { echo ""; @@ -196,9 +196,9 @@ if($_REQUEST['v6table'] == '1') { - echo "

ipv6 routes table fff

"; + echo "

ipv6 routing table

"; echo '
'; - $v6routen = shell_exec('ip -6 r s t fff'); + $v6routen = shell_exec('ip -6 r s t $(grep import-table /etc/babeld.conf | cut -f2 -d" ")'); $v6route = explode(PHP_EOL, $v6routen); for($i = 0; $i < count($v6route); ++$i) { echo "";