summaryrefslogtreecommitdiffstats
path: root/src/etc/inc/openvpn.attributes.php
diff options
context:
space:
mode:
authorChris Buechler <cmb@pfsense.org>2015-11-15 00:14:56 -0600
committerChris Buechler <cmb@pfsense.org>2015-11-15 00:14:56 -0600
commit8e81f6a88180c5c9a280d78fd77788f7160b0d1a (patch)
treeddf3380df85f1d84bf76e86e044019644e60388d /src/etc/inc/openvpn.attributes.php
parent2217c57471d989677d050ac24272f1dfbafeafd3 (diff)
downloadpfsense-8e81f6a88180c5c9a280d78fd77788f7160b0d1a.zip
pfsense-8e81f6a88180c5c9a280d78fd77788f7160b0d1a.tar.gz
Correct AVPair rules. Ticket #5451
Diffstat (limited to 'src/etc/inc/openvpn.attributes.php')
-rw-r--r--src/etc/inc/openvpn.attributes.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/etc/inc/openvpn.attributes.php b/src/etc/inc/openvpn.attributes.php
index 467d691..b966448 100644
--- a/src/etc/inc/openvpn.attributes.php
+++ b/src/etc/inc/openvpn.attributes.php
@@ -143,16 +143,16 @@ function parse_cisco_acl($attribs) {
/* Destination */
if (trim($rule[$index]) == "host") {
$index++;
- $tmprule .= "to {$rule[$index]} ";
+ $tmprule .= " to {$rule[$index]} ";
$index++;
if ($isblock == true) {
$isblock = false;
}
} else if (trim($rule[$index]) == "any") {
$index++;
- $tmprule .= "to any";
+ $tmprule .= " to any";
} else {
- $tmprule .= "to {$rule[$index]}";
+ $tmprule .= " to {$rule[$index]}";
$index++;
$netmask = cisco_to_cidr($rule[$index]);
$tmprule .= "/{$netmask} ";
OpenPOWER on IntegriCloud