mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Show IPv6 addresses in the banner message
This commit is contained in:
parent
d55ea9701f
commit
41dfef338f
@ -70,15 +70,23 @@
|
||||
break;
|
||||
}
|
||||
$ipaddr = get_interface_ip($ifname);
|
||||
$subnet = get_interface_subnet($ifname);
|
||||
$ipaddr6 = get_interface_ipv6($ifname);
|
||||
$subnet6 = get_interface_subnetv6($ifname);
|
||||
$realif = get_real_interface($ifname);
|
||||
$tobanner = "{$friendly} ({$ifname})";
|
||||
|
||||
printf("\n %-25s -> %-10s -> %s %s",
|
||||
$ipaddr ? $ipaddr : "NONE";
|
||||
|
||||
printf("\n %-18s -> %-8s -> %s/%s %s/%s %s",
|
||||
$tobanner,
|
||||
$realif,
|
||||
$ipaddr ? $ipaddr : "NONE",
|
||||
$ipaddr,
|
||||
$subnet,
|
||||
$ipaddr6,
|
||||
$subnet6,
|
||||
$class
|
||||
);
|
||||
}
|
||||
|
||||
?>
|
||||
?>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user