Commit 4addfd23 authored by Ad Schellevis's avatar Ad Schellevis

(dhcpv6) don't override values the user just put in.

parent 5cb39a70
......@@ -309,7 +309,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
}
// router advertisement data lives in the same spot, copy
foreach (array_keys($config['dhcpdv6'][$if]) as $fieldname) {
if (substr($fieldname,0 ,2) == 'ra') {
if (substr($fieldname,0 ,2) == 'ra' && !in_array($fieldname, array_keys($dhcpdconf))) {
$dhcpdconf[$fieldname] = $config['dhcpdv6'][$if][$fieldname];
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment