From 901d4b81be5f518f4481e487f5568901ef60ac51 Mon Sep 17 00:00:00 2001 From: Matt Smith Date: Thu, 22 Oct 2015 14:16:11 -0500 Subject: Apply fix previously made for neighbors within a group to neighbors that do not have a group assigned. Fixes #4634. --- config/openbgpd/openbgpd.inc | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'config/openbgpd') 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"; } -- cgit v1.2.3