aboutsummaryrefslogtreecommitdiffstats
path: root/config/softflowd/softflowd.xml
diff options
context:
space:
mode:
authordoktornotor <notordoktor@gmail.com>2015-07-30 18:33:02 +0200
committerdoktornotor <notordoktor@gmail.com>2015-07-30 18:33:02 +0200
commit80a1adec64763c510c98883216207975fd0cfa8e (patch)
treed6e932b1b01cb028ad391ed786dfff9ffd2c2f4b /config/softflowd/softflowd.xml
parent82f357e6157d2e126da43134abcacc60a5e6033b (diff)
downloadpfsense-packages-80a1adec64763c510c98883216207975fd0cfa8e.tar.gz
pfsense-packages-80a1adec64763c510c98883216207975fd0cfa8e.tar.bz2
pfsense-packages-80a1adec64763c510c98883216207975fd0cfa8e.zip
Fix the rest of if braces as well.
Diffstat (limited to 'config/softflowd/softflowd.xml')
-rw-r--r--config/softflowd/softflowd.xml39
1 files changed, 26 insertions, 13 deletions
diff --git a/config/softflowd/softflowd.xml b/config/softflowd/softflowd.xml
index 2960a560..39a0b725 100644
--- a/config/softflowd/softflowd.xml
+++ b/config/softflowd/softflowd.xml
@@ -191,36 +191,49 @@
$cf['host'] = is_ipaddrv6($cf['host']) ? "[{$cf['host']}]" : $cf['host'];
$start = "/usr/bin/killall -9 softflowd";
foreach ($interface_list as $interface_friendly) {
- if (empty($interface_friendly))
+ if (empty($interface_friendly)) {
continue;
+ }
$interface = get_real_interface($interface_friendly);
- if (empty($interface))
+ if (empty($interface)) {
continue;
+ }
$start .= "\n\t/usr/local/sbin/softflowd ";
$start .= " -i " . escapeshellarg($interface);
$start .= " -n " . escapeshellarg("{$cf['host']}:{$cf['port']}");
- if (is_numeric($cf['maxflows']))
+ if (is_numeric($cf['maxflows'])) {
$start .= " -m " . escapeshellarg($cf['maxflows']);
- if (is_numeric($cf['hoplimit']))
+ }
+ if (is_numeric($cf['hoplimit'])) {
$start .= " -L " . escapeshellarg($cf['hoplimit']);
- if ($cf['version'] != "")
+ }
+ if ($cf['version'] != "") {
$start .= " -v " . escapeshellarg($cf['version']);
- if ($cf['flowtracking'] != "")
+ }
+ if ($cf['flowtracking'] != "") {
$start .= " -T " . escapeshellarg($cf['flowtracking']);
- if (is_numeric($cf['timeout-general']))
+ }
+ if (is_numeric($cf['timeout-general'])) {
$start .= " -t " . escapeshellarg("general={$cf['timeout-general']}");
- if (is_numeric($cf['timeout-maxlife']))
+ }
+ if (is_numeric($cf['timeout-maxlife'])) {
$start .= " -t " . escapeshellarg("maxlife={$cf['timeout-maxlife']}");
- if (is_numeric($cf['timeout-expint']))
+ }
+ if (is_numeric($cf['timeout-expint'])) {
$start .= " -t " . escapeshellarg("expint={$cf['timeout-expint']}");
- if (is_numeric($cf['timeout-tcp']))
+ }
+ if (is_numeric($cf['timeout-tcp'])) {
$start .= " -t " . escapeshellarg("tcp={$cf['timeout-tcp']}");
- if (is_numeric($cf['timeout-tcp-rst']))
+ }
+ if (is_numeric($cf['timeout-tcp-rst'])) {
$start .= " -t " . escapeshellarg("tcp.rst={$cf['timeout-tcp-rst']}");
- if (is_numeric($cf['timeout-tcp-fin']))
+ }
+ if (is_numeric($cf['timeout-tcp-fin'])) {
$start .= " -t " . escapeshellarg("tcp.fin={$cf['timeout-tcp-fin']}");
- if (is_numeric($cf['timeout-udp']))
+ }
+ if (is_numeric($cf['timeout-udp'])) {
$start .= " -t " . escapeshellarg("udp={$cf['timeout-udp']}");
+ }
$start .= " -p " . escapeshellarg("/var/run/softflowd.{$interface}.pid");
$start .= " -c " . escapeshellarg("/var/run/softflowd.{$interface}.ctl");
}