summaryrefslogtreecommitdiffstats
path: root/src/etc/inc/openvpn.auth-user.php
diff options
context:
space:
mode:
authordoktornotor <notordoktor@gmail.com>2015-09-12 19:41:05 +0200
committerdoktornotor <notordoktor@gmail.com>2015-09-12 19:41:05 +0200
commitee8f9940b73d8066de9f28355e72357816817d84 (patch)
treeed8762ef3bb2a79528f15110fb059591ff421b4f /src/etc/inc/openvpn.auth-user.php
parent1a060606a9ea0106a4e57a3593cedf22bd223934 (diff)
downloadpfsense-ee8f9940b73d8066de9f28355e72357816817d84.zip
pfsense-ee8f9940b73d8066de9f28355e72357816817d84.tar.gz
Fix incorrect netmask sent to client with static IP set in RADIUS (Bug #5129)
Diffstat (limited to 'src/etc/inc/openvpn.auth-user.php')
-rw-r--r--src/etc/inc/openvpn.auth-user.php10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/etc/inc/openvpn.auth-user.php b/src/etc/inc/openvpn.auth-user.php
index e108a4f..e3ce828 100644
--- a/src/etc/inc/openvpn.auth-user.php
+++ b/src/etc/inc/openvpn.auth-user.php
@@ -186,15 +186,13 @@ if (is_array($attributes['routes'])) {
}
if (isset($attributes['framed_ip'])) {
-/* XXX: only use when TAP windows driver >= 8.2.x */
-/* if (isset($attributes['framed_mask'])) {
+ if (isset($attributes['framed_mask'])) {
$content .= "topology subnet\n";
$content .= "ifconfig-push {$attributes['framed_ip']} {$attributes['framed_mask']}";
} else {
-*/
- $content .= "topology net30\n";
- $content .= "ifconfig-push {$attributes['framed_ip']} ". long2ip((ip2long($attributes['framed_ip']) + 1));
-// }
+ $content .= "topology net30\n";
+ $content .= "ifconfig-push {$attributes['framed_ip']} ". long2ip((ip2long($attributes['framed_ip']) + 1));
+ }
}
if (!empty($content)) {
OpenPOWER on IntegriCloud