mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
We want to actually compress the IPv6 address, not uncompress.
This commit is contained in:
parent
6c99bb6366
commit
73778c3f3a
@ -3143,11 +3143,11 @@ function interface_track6_dhcp6_configure($interface = "lan") {
|
||||
$ifcfgipv6 = find_interface_ipv6($lanif);
|
||||
if(is_ipaddrv6($ifcfgipv6)) {
|
||||
$dhcp6lanarr = explode(":", Net_IPv6::uncompress($ifcfgipv6));
|
||||
unset($dhcp6lanarr[4]);
|
||||
unset($dhcp6lanarr[5]);
|
||||
unset($dhcp6lanarr[6]);
|
||||
$dhcp6lanarr[4] = 0;
|
||||
$dhcp6lanarr[5] = 0;
|
||||
$dhcp6lanarr[6] = 0;
|
||||
$dhcp6lanarr[7] = 1;
|
||||
$dhcp6lan = Net_IPv6::uncompress(implode(":", $dhcp6lanarr));
|
||||
$dhcp6lan = Net_IPv6::compress(implode(":", $dhcp6lanarr));
|
||||
log_error("dhcp6 {$interface} with ipv6 address {$dhcp6lan} based on {$lancfg['track6-interface']}");
|
||||
mwexec("/sbin/ifconfig {$lanif} inet6 {$dhcp6lan} prefixlen 64");
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user