summaryrefslogtreecommitdiffstats
path: root/src/etc/inc
diff options
context:
space:
mode:
authorRenato Botelho <renato@netgate.com>2016-01-12 09:15:39 -0200
committerRenato Botelho <renato@netgate.com>2016-01-12 09:15:39 -0200
commitf9dd0de04b1d61dcb4539d063ed301fa579be41f (patch)
tree0223b2bd253efa63a50ee6134598a6794cd84052 /src/etc/inc
parent6c8e76d4318f4860745374ac32d9a16543034e34 (diff)
parentc50634b5e821966bc4c4a0a30532171952868404 (diff)
downloadpfsense-f9dd0de04b1d61dcb4539d063ed301fa579be41f.zip
pfsense-f9dd0de04b1d61dcb4539d063ed301fa579be41f.tar.gz
Merge pull request #2407 from stilez/patch-11
Diffstat (limited to 'src/etc/inc')
-rw-r--r--src/etc/inc/vpn.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/etc/inc/vpn.inc b/src/etc/inc/vpn.inc
index 50f0b01..8aa3cbd 100644
--- a/src/etc/inc/vpn.inc
+++ b/src/etc/inc/vpn.inc
@@ -1588,7 +1588,7 @@ function vpn_pppoe_configure(&$pppoecfg) {
for ($i = 0; $i < $pppoecfg['n_pppoe_units']; $i++) {
- $clientip = long2ip32(ip2long($pppoecfg['remoteip']) + $i);
+ $clientip = ip_after($pppoecfg['remoteip'], $i);
if (isset($pppoecfg['radius']['radiusissueips']) && isset($pppoecfg['radius']['server']['enable'])) {
$issue_ip_type = "set ipcp ranges {$pppoecfg['localip']}/32 0.0.0.0/0";
@@ -1827,7 +1827,7 @@ EOD;
for ($i = 0; $i < $l2tpcfg['n_l2tp_units']; $i++) {
- $clientip = long2ip32(ip2long($l2tpcfg['remoteip']) + $i);
+ $clientip = ip_after($l2tpcfg['remoteip'], $i);
if (isset ($l2tpcfg['radius']['radiusissueips']) && isset ($l2tpcfg['radius']['enable'])) {
$issue_ip_type = "set ipcp ranges {$l2tpcfg['localip']}/32 0.0.0.0/0";
OpenPOWER on IntegriCloud