diff --git a/CHANGELOG b/CHANGELOG index 1ef743d..e58f7bc 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -3,6 +3,7 @@ ====================== Version Description +1.0.61......Display static inet ip from vnet jail config. 1.0.60......Include missing bits, disable vnet on versions below 12. 1.0.59......Add a skip link to the initial help banner. 1.0.58......Add Spanish translation thanks to raul fernandez garcia. diff --git a/gui/bastille_manager-lib.inc b/gui/bastille_manager-lib.inc index 0d032d4..612220e 100755 --- a/gui/bastille_manager-lib.inc +++ b/gui/bastille_manager-lib.inc @@ -205,6 +205,10 @@ function get_jail_infos() { if (!$r['ip']): $r['ip'] = exec("/usr/bin/grep -w 'ip6.addr' {$jail_dir}/{$item}/jail.conf | /usr/bin/awk '{print $3}' | /usr/bin/tr -d ';'"); endif; + // Try to get ip from vnet config. + if(!$r['ip']): + $r['ip'] = exec("/usr/local/bin/bastille cmd {$item} cat /etc/rc.conf | /usr/bin/grep 'ifconfig_vnet0=' | cut -d'\"' -f2 | sed 's/inet //'"); + endif; if (!$r['ip']): $r['ip'] = "-"; endif; diff --git a/version b/version index 4bf1778..9972f12 100644 --- a/version +++ b/version @@ -1 +1 @@ -1.0.60 +1.0.61