mirror of
https://github.com/alice-lg/birdwatcher.git
synced 2025-03-09 00:00:05 +01:00
Add comment to explain "-r" argument.
This commit is contained in:
parent
1ccbc3d702
commit
88eb405c9e
1 changed files with 1 additions and 1 deletions
|
@ -60,7 +60,7 @@ func toCache(key string, val Parsed) {
|
|||
}
|
||||
|
||||
func Run(args string) (io.Reader, error) {
|
||||
args = "-r " + "show " + args
|
||||
args = "-r " + "show " + args // enforce birdc in restricted mode with "-r" argument
|
||||
argsList := strings.Split(args, " ")
|
||||
|
||||
out, err := exec.Command(ClientConf.BirdCmd, argsList...).Output()
|
||||
|
|
Loading…
Add table
Reference in a new issue