diff options
author | marjohn56 <martin@queens-park.com> | 2017-07-27 19:59:11 +0100 |
---|---|---|
committer | marjohn56 <martin@queens-park.com> | 2017-07-28 08:05:24 +0100 |
commit | 58a185aede55efe71cabc337938ed05f456eecea (patch) | |
tree | 6b419e1643e6807f3d8979b5f895c2e29b67bba1 /src/etc | |
parent | 9968e3844f1e43301fa85c2be06b1d7cf1db9e16 (diff) | |
download | pfsense-58a185aede55efe71cabc337938ed05f456eecea.zip pfsense-58a185aede55efe71cabc337938ed05f456eecea.tar.gz |
dhcp6c Advanced Config prefix interface
Currently, when using dhcp6c advanced configuration the prefix interface is WAN, this is not very useful!
The changes here allow the user to select the interface that the PD will be applied on..
Diffstat (limited to 'src/etc')
-rw-r--r-- | src/etc/inc/interfaces.inc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/etc/inc/interfaces.inc b/src/etc/inc/interfaces.inc index 0787110..003738e 100644 --- a/src/etc/inc/interfaces.inc +++ b/src/etc/inc/interfaces.inc @@ -4407,10 +4407,11 @@ function DHCP6_Config_File_Advanced($interface, $wancfg, $wanif) { } $id_assoc_statement_prefix .= ";"; } - + + $realif = get_real_interface($wancfg['adv_dhcp6_prefix_selected_interface']); if (is_numeric($wancfg['adv_dhcp6_prefix_interface_statement_sla_id'])) { $id_assoc_statement_prefix .= "\n\tprefix-interface"; - $id_assoc_statement_prefix .= " {$wanif}"; + $id_assoc_statement_prefix .= " {$realif}"; $id_assoc_statement_prefix .= " {\n"; $id_assoc_statement_prefix .= "\t\tsla-id {$wancfg['adv_dhcp6_prefix_interface_statement_sla_id']};\n"; if (($wancfg['adv_dhcp6_prefix_interface_statement_sla_len'] >= 0) && |