aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
Diffstat (limited to 'config')
-rw-r--r--config/openbgpd/openbgpd.inc5
1 files changed, 3 insertions, 2 deletions
diff --git a/config/openbgpd/openbgpd.inc b/config/openbgpd/openbgpd.inc
index 12be4ce1..907f6b8c 100644
--- a/config/openbgpd/openbgpd.inc
+++ b/config/openbgpd/openbgpd.inc
@@ -130,10 +130,11 @@ function openbgpd_install_conf() {
}
}
if ($setlocaladdr == true) {
- if (!empty($openbgpd_conf['listenip']))
+ if (!empty($openbgpd_conf['listenip'])) {
$conffile .= "\t\tlocal-address {$openbgpd_conf['listenip']}\n";
- else
+ } else {
$conffile .= "\t\tlocal-address 0.0.0.0\n";
+ }
}
$conffile .= "}\n";