summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--gobgp/main.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/gobgp/main.go b/gobgp/main.go
index 6ae9a0e1..364dc963 100644
--- a/gobgp/main.go
+++ b/gobgp/main.go
@@ -355,7 +355,7 @@ func (x *ShowNeighborRibCommand) Execute(args []string) error {
rt = "ipv6"
}
} else {
- rt = args[1]
+ rt = args[0]
}
b := get("neighbor/" + x.remoteIP.String() + "/" + x.resource + "/" + rt)