summaryrefslogtreecommitdiffhomepage
path: root/cmd
diff options
context:
space:
mode:
Diffstat (limited to 'cmd')
-rw-r--r--cmd/gobgp/policy.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/gobgp/policy.go b/cmd/gobgp/policy.go
index 6408248f..710fdb38 100644
--- a/cmd/gobgp/policy.go
+++ b/cmd/gobgp/policy.go
@@ -323,7 +323,7 @@ func parseNeighborSet(args []string) (*api.DefinedSet, error) {
}
name := args[0]
args = args[1:]
- list := make([]string, 0, len(args[1:]))
+ list := make([]string, 0, len(args))
for _, arg := range args {
address := net.ParseIP(arg)
if address.To4() != nil {