fix bgp_add_route with bind_address ( fix #9 )

This commit is contained in:
Dominique Rousseau 2021-07-26 17:38:28 +02:00 committed by Baptiste Jonglez
parent 832945bb4b
commit 7c715f16fc

View file

@ -4138,7 +4138,7 @@ static void mainloop(void)
signal(SIGPIPE, SIG_IGN);
bgp_setup(config->as_number);
if (config->bind_address)
bgp_add_route(config->bind_address, 0xffffffff);
bgp_add_route(config->bind_address, 32);
for (i = 0; i < BGP_NUM_PEERS; i++)
{