Make the openvpn-server IP address consistent with CSC overrides behavior

This commit is contained in:
doktornotor 2015-09-17 15:17:31 +02:00
parent 4919a84245
commit 62e5ef299d

View File

@ -186,7 +186,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));
}
}