mirror of
https://github.com/webmin/webmin.git
synced 2025-08-17 19:06:28 +00:00
Handle some odd IP route setup seen on CentOS 7 http://virtualmin.com/node/35910
This commit is contained in:
@ -88,6 +88,10 @@ elsif (&has_command("ip")) {
|
||||
$ifc{'address'} = $1;
|
||||
$ifc{'netmask'} = &prefix_to_mask("$2");
|
||||
}
|
||||
elsif ($l =~ /\sinet\s+([0-9\.]+)\s+peer\s+([0-9\.]+)\/(\d+)/) {
|
||||
$ifc{'address'} = $1;
|
||||
$ifc{'netmask'} = &prefix_to_mask("$3");
|
||||
}
|
||||
if ($l =~ /\sbrd\s+([0-9\.]+)/) {
|
||||
$ifc{'broadcast'} = $1;
|
||||
}
|
||||
|
Reference in New Issue
Block a user