Fix a bug to display correct VNET interface
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
======================
|
||||
Version Description
|
||||
|
||||
1.1.05......Fix a bug to display correct VNET interface.
|
||||
1.1.04......Fix a bug that prevents VNET jail creation.
|
||||
1.1.03......Add patch to improve ZFS activation, contributed by disaster.
|
||||
1.1.02......Create required dir for templates link creation.
|
||||
|
||||
@@ -238,7 +238,7 @@ function get_jail_infos() {
|
||||
$r['rel'] = "-";
|
||||
endif;
|
||||
// Display interfaces.
|
||||
$r['nic'] = exec("/usr/bin/grep -w 'interface' {$jail_dir}/{$item}/jail.conf | /usr/bin/awk '{print $3}' | /usr/bin/tr -d ';'");
|
||||
$r['nic'] = exec("/usr/bin/grep -wE 'interface.*=.*;|vnet.interface.*=.*;' {$jail_dir}/{$item}/jail.conf | /usr/bin/awk '{print $3}' | /usr/bin/tr -d ';'");
|
||||
if (!$r['nic']):
|
||||
$r['nic'] = "-";
|
||||
endif;
|
||||
|
||||
Reference in New Issue
Block a user