summaryrefslogtreecommitdiffstats
path: root/src/etc/inc/openvpn.attributes.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/etc/inc/openvpn.attributes.php')
-rw-r--r--src/etc/inc/openvpn.attributes.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/etc/inc/openvpn.attributes.php b/src/etc/inc/openvpn.attributes.php
index b966448..4da9f0d 100644
--- a/src/etc/inc/openvpn.attributes.php
+++ b/src/etc/inc/openvpn.attributes.php
@@ -128,7 +128,7 @@ function parse_cisco_acl($attribs) {
$isblock = false;
}
} else if (trim($rule[$index]) == "any") {
- $tmprule .= "from any";
+ $tmprule .= "from any ";
$index++;
} else {
$tmprule .= "from {$rule[$index]}";
@@ -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