fix typo in incomplete default routes error message

Signed-off-by: Kamal Nasser <hello@kamal.io>
pull/5401/head
Kamal Nasser 2022-08-20 23:36:17 +03:00 committed by Denton Gentry
parent b997304bf6
commit f983962fc6
1 changed files with 1 additions and 1 deletions

View File

@ -252,7 +252,7 @@ func calcAdvertiseRoutes(advertiseRoutes string, advertiseDefaultRoute bool) ([]
if default4 && !default6 {
return nil, fmt.Errorf("%s advertised without its IPv6 counterpart, please also advertise %s", ipv4default, ipv6default)
} else if default6 && !default4 {
return nil, fmt.Errorf("%s advertised without its IPv6 counterpart, please also advertise %s", ipv6default, ipv4default)
return nil, fmt.Errorf("%s advertised without its IPv4 counterpart, please also advertise %s", ipv6default, ipv4default)
}
}
if advertiseDefaultRoute {