aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorMatt Smith <mgsmith@netgate.com>2015-10-22 14:16:11 -0500
committerMatt Smith <mgsmith@netgate.com>2015-10-22 14:16:11 -0500
commit901d4b81be5f518f4481e487f5568901ef60ac51 (patch)
tree51481ed5a320256bc6cc2641326912b953e353bb /config
parent1312432b4aa191b0cece4eeae5442fa7cda6f2cf (diff)
downloadpfsense-packages-901d4b81be5f518f4481e487f5568901ef60ac51.tar.gz
pfsense-packages-901d4b81be5f518f4481e487f5568901ef60ac51.tar.bz2
pfsense-packages-901d4b81be5f518f4481e487f5568901ef60ac51.zip
Apply fix previously made for neighbors within a group to neighbors that do not have a group assigned. Fixes #4634.
Diffstat (limited to 'config')
-rw-r--r--config/openbgpd/openbgpd.inc10
1 files changed, 6 insertions, 4 deletions
diff --git a/config/openbgpd/openbgpd.inc b/config/openbgpd/openbgpd.inc
index 93364be9..ddfef18f 100644
--- a/config/openbgpd/openbgpd.inc
+++ b/config/openbgpd/openbgpd.inc
@@ -179,10 +179,12 @@ function openbgpd_install_conf() {
$conffile .= "\t{$row['parameters']} {$row['parmvalue']} \n";
}
}
- if ($setlocaladdr == true && !empty($openbgpd_conf['listenip'])) {
- $conffile .= "\tlocal-address {$openbgpd_conf['listenip']}\n";
- } else {
- $conffile .= "\tlocal-address 0.0.0.0\n";
+ if ($setlocaladdr == true) {
+ if (!empty($openbgpd_conf['listenip'])) {
+ $conffile .= "\tlocal-address {$openbgpd_conf['listenip']}\n";
+ } else {
+ $conffile .= "\tlocal-address 0.0.0.0\n";
+ }
}
$conffile .= "}\n";
}