summaryrefslogtreecommitdiffstats
path: root/src/etc/inc/openvpn.auth-user.php
diff options
context:
space:
mode:
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