aboutsummaryrefslogtreecommitdiffstats
path: root/config/openbgpd/openbgpd.inc
diff options
context:
space:
mode:
authorMatt Smith <mgsmith@netgate.com>2014-07-24 10:30:33 -0500
committerMatt Smith <mgsmith@netgate.com>2014-07-24 10:30:33 -0500
commitfbbc57ece0730657f2e5c6ba7026ebb827c03e53 (patch)
tree89965f2243dfc5746e03d8f2c70ec2948c513cf6 /config/openbgpd/openbgpd.inc
parent02dcf3888c643fcbd6b7f01d92eec2f9b5dc5955 (diff)
downloadpfsense-packages-fbbc57ece0730657f2e5c6ba7026ebb827c03e53.tar.gz
pfsense-packages-fbbc57ece0730657f2e5c6ba7026ebb827c03e53.tar.bz2
pfsense-packages-fbbc57ece0730657f2e5c6ba7026ebb827c03e53.zip
put brackets around nested ifs to clarify where the else belongs.
Diffstat (limited to 'config/openbgpd/openbgpd.inc')
-rw-r--r--config/openbgpd/openbgpd.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/config/openbgpd/openbgpd.inc b/config/openbgpd/openbgpd.inc
index 897d83d1..12be4ce1 100644
--- a/config/openbgpd/openbgpd.inc
+++ b/config/openbgpd/openbgpd.inc
@@ -129,11 +129,12 @@ function openbgpd_install_conf() {
$conffile .= "\t\t{$row['parameters']} {$row['parmvalue']} \n";
}
}
- if ($setlocaladdr == true)
+ if ($setlocaladdr == true) {
if (!empty($openbgpd_conf['listenip']))
$conffile .= "\t\tlocal-address {$openbgpd_conf['listenip']}\n";
else
$conffile .= "\t\tlocal-address 0.0.0.0\n";
+ }
$conffile .= "}\n";
}