summaryrefslogtreecommitdiffstats
path: root/src/etc/inc/openvpn.auth-user.php
diff options
context:
space:
mode:
authordoktornotor <notordoktor@gmail.com>2015-09-17 15:12:14 +0200
committerdoktornotor <notordoktor@gmail.com>2015-09-17 15:12:14 +0200
commit356ec7879163aa6d3b488024c130e78ac7b77b82 (patch)
tree61e1ec886f672262d67d43169cbc5cc924360e8d /src/etc/inc/openvpn.auth-user.php
parentee8f9940b73d8066de9f28355e72357816817d84 (diff)
downloadpfsense-356ec7879163aa6d3b488024c130e78ac7b77b82.zip
pfsense-356ec7879163aa6d3b488024c130e78ac7b77b82.tar.gz
Make the openvpn-server IP address consistent with CSC overrides behavior
Diffstat (limited to 'src/etc/inc/openvpn.auth-user.php')
-rw-r--r--src/etc/inc/openvpn.auth-user.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/etc/inc/openvpn.auth-user.php b/src/etc/inc/openvpn.auth-user.php
index e3ce828..0f6864b 100644
--- a/src/etc/inc/openvpn.auth-user.php
+++ b/src/etc/inc/openvpn.auth-user.php
@@ -191,7 +191,7 @@ if (isset($attributes['framed_ip'])) {
$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 .= "ifconfig-push {$attributes['framed_ip']} ". long2ip((ip2long($attributes['framed_ip']) - 1));
}
}
OpenPOWER on IntegriCloud