1
0
Fork 0
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:
Matthias Hannig 2018-11-29 15:28:00 +01:00
parent e7755afb61
commit 2a17304682

View file

@ -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)
}