diff options
Diffstat (limited to 'client/client.go')
-rw-r--r-- | client/client.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/client/client.go b/client/client.go index abc22161..b85360c2 100644 --- a/client/client.go +++ b/client/client.go @@ -97,7 +97,7 @@ func (cli *GoBGPClient) GetServer() (*config.Global, error) { } func (cli *GoBGPClient) getNeighbor(name string, afi int, vrf string) ([]*config.Neighbor, error) { - ret, err := cli.cli.GetNeighbor(context.Background(), &api.GetNeighborRequest{}) + ret, err := cli.cli.GetNeighbor(context.Background(), &api.GetNeighborRequest{EnableAdvertised: name != ""}) if err != nil { return nil, err } |