mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Only create config for enabled DHCPv6 server entries, prevent duplicate network configuration.
This commit is contained in:
parent
5747a73524
commit
7492f21df9
@ -88,7 +88,7 @@ EOD;
|
||||
/* Process all links which need the router advertise daemon */
|
||||
$rtadvdnum = 0;
|
||||
foreach ($dhcpdv6cfg as $dhcpv6if => $dhcpv6ifconf) {
|
||||
if($dhcpv6ifconf['mode'] == "disabled")
|
||||
if($dhcpv6ifconf['mode'] != "enable")
|
||||
continue;
|
||||
|
||||
$realif = get_real_interface($dhcpv6if);
|
||||
@ -153,6 +153,10 @@ EOD;
|
||||
continue;
|
||||
|
||||
$realif = get_real_interface($if);
|
||||
/* prevent duplicate entries */
|
||||
if(in_array($realif, $rtadvdifs))
|
||||
continue;
|
||||
|
||||
$rtadvdifs[] = $realif;
|
||||
|
||||
$ifcfgipv6 = get_interface_ipv6($if);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user