1
0
Fork 0
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:
Benedikt Rudolph 2018-06-06 13:37:01 +02:00
parent 1ccbc3d702
commit 88eb405c9e

View file

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