mirror of
https://github.com/yusing/godoxy.git
synced 2025-06-01 09:32:35 +02:00
rename rule.on.bypass to pass
This commit is contained in:
parent
6b119968e4
commit
c1705a0209
1 changed files with 3 additions and 2 deletions
|
@ -30,7 +30,8 @@ const (
|
||||||
CommandSet = "set"
|
CommandSet = "set"
|
||||||
CommandAdd = "add"
|
CommandAdd = "add"
|
||||||
CommandRemove = "remove"
|
CommandRemove = "remove"
|
||||||
CommandBypass = "bypass"
|
CommandPass = "pass"
|
||||||
|
CommandPassAlt = "bypass"
|
||||||
)
|
)
|
||||||
|
|
||||||
var commands = map[string]struct {
|
var commands = map[string]struct {
|
||||||
|
@ -231,7 +232,7 @@ func (cmd *Command) Parse(v string) error {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
if directive == CommandBypass {
|
if directive == CommandPass || directive == CommandPassAlt {
|
||||||
if len(args) != 0 {
|
if len(args) != 0 {
|
||||||
return ErrInvalidArguments.Subject(directive)
|
return ErrInvalidArguments.Subject(directive)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue