mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-23 11:27:42 +08:00
commands/http: Error if trying to run private command
This commit is contained in:
parent
abcebb0bc2
commit
cfa56dde82
@ -31,6 +31,10 @@ func Parse(r *http.Request, root *cmds.Command) (cmds.Request, error) {
|
||||
cmd = sub
|
||||
}
|
||||
|
||||
if cmd.Private {
|
||||
return nil, ErrNotFound
|
||||
}
|
||||
|
||||
opts, args2 := parseOptions(r)
|
||||
args = append(args, args2...)
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user