From 356ec7879163aa6d3b488024c130e78ac7b77b82 Mon Sep 17 00:00:00 2001 From: doktornotor Date: Thu, 17 Sep 2015 15:12:14 +0200 Subject: Make the openvpn-server IP address consistent with CSC overrides behavior --- src/etc/inc/openvpn.auth-user.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/etc/inc/openvpn.auth-user.php') 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)); } } -- cgit v1.1