aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
Diffstat (limited to 'config')
-rw-r--r--config/openbgpd/openbgpd.inc9
1 files changed, 5 insertions, 4 deletions
diff --git a/config/openbgpd/openbgpd.inc b/config/openbgpd/openbgpd.inc
index 76aeb54f..897d83d1 100644
--- a/config/openbgpd/openbgpd.inc
+++ b/config/openbgpd/openbgpd.inc
@@ -129,10 +129,11 @@ function openbgpd_install_conf() {
$conffile .= "\t\t{$row['parameters']} {$row['parmvalue']} \n";
}
}
- if ($setlocaladdr == true && !empty($openbgpd_conf['listenip']))
- $conffile .= "\t\tlocal-address {$openbgpd_conf['listenip']}\n";
- else
- $conffile .= "\t\tlocal-address 0.0.0.0\n";
+ 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";
}