From 9a9b000767749bcb54f3583cd6099dddb6d555db Mon Sep 17 00:00:00 2001 From: Phil Davis Date: Thu, 2 Jun 2016 16:43:09 +0930 Subject: [PATCH] Fix #6440 RADIUS issued IPs This is a checkbox - the state in the config is stored as set or not set. This should fix the reported issue. I don;t have a system right now to test, but the bug seems obvious. --- src/usr/local/www/vpn_l2tp.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/usr/local/www/vpn_l2tp.php b/src/usr/local/www/vpn_l2tp.php index 7284a9929f..ec1a4d9854 100644 --- a/src/usr/local/www/vpn_l2tp.php +++ b/src/usr/local/www/vpn_l2tp.php @@ -79,7 +79,7 @@ $pconfig['radiusenable'] = isset($l2tpcfg['radius']['enable']); $pconfig['radacct_enable'] = isset($l2tpcfg['radius']['accounting']); $pconfig['radiusserver'] = $l2tpcfg['radius']['server']; $pconfig['radiussecret'] = $l2tpcfg['radius']['secret']; -$pconfig['radiusissueips'] = $l2tpcfg['radius']['radiusissueips']; +$pconfig['radiusissueips'] = isset($l2tpcfg['radius']['radiusissueips']); $pconfig['n_l2tp_units'] = $l2tpcfg['n_l2tp_units']; $pconfig['paporchap'] = $l2tpcfg['paporchap']; $pconfig['secret'] = $l2tpcfg['secret'];