mirror of
https://github.com/alice-lg/birdwatcher.git
synced 2025-03-09 00:00:05 +01:00
fixed command syntax
This commit is contained in:
parent
e7755afb61
commit
2a17304682
1 changed files with 3 additions and 2 deletions
|
@ -200,7 +200,8 @@ func RoutesProtoCount(protocol string) (Parsed, bool) {
|
|||
}
|
||||
|
||||
func RoutesFiltered(protocol string) (Parsed, bool) {
|
||||
cmd := routeQueryForChannel("route all filtered " + protocol)
|
||||
cmd := routeQueryForChannel("route filtered protocol '" + protocol + "' all")
|
||||
|
||||
return RunAndParse(cmd, parseRoutes)
|
||||
}
|
||||
|
||||
|
@ -221,7 +222,7 @@ func RoutesNoExport(protocol string) (Parsed, bool) {
|
|||
protocol[len(ParserConf.PeerProtocolPrefix):]
|
||||
}
|
||||
|
||||
cmd := routeQueryForChannel("route all noexport " + protocol)
|
||||
cmd := routeQueryForChannel("route noexport '" + protocol + "' all")
|
||||
return RunAndParse(cmd, parseRoutes)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue