diff options
author | doktornotor <notordoktor@gmail.com> | 2015-09-12 19:41:05 +0200 |
---|---|---|
committer | doktornotor <notordoktor@gmail.com> | 2015-09-12 19:41:05 +0200 |
commit | ee8f9940b73d8066de9f28355e72357816817d84 (patch) | |
tree | ed8762ef3bb2a79528f15110fb059591ff421b4f /src/etc/inc/openvpn.auth-user.php | |
parent | 1a060606a9ea0106a4e57a3593cedf22bd223934 (diff) | |
download | pfsense-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.php | 10 |
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)) { |