mirror of
https://github.com/yusing/godoxy.git
synced 2025-05-31 00:52: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"
|
||||
CommandAdd = "add"
|
||||
CommandRemove = "remove"
|
||||
CommandBypass = "bypass"
|
||||
CommandPass = "pass"
|
||||
CommandPassAlt = "bypass"
|
||||
)
|
||||
|
||||
var commands = map[string]struct {
|
||||
|
@ -231,7 +232,7 @@ func (cmd *Command) Parse(v string) error {
|
|||
return err
|
||||
}
|
||||
|
||||
if directive == CommandBypass {
|
||||
if directive == CommandPass || directive == CommandPassAlt {
|
||||
if len(args) != 0 {
|
||||
return ErrInvalidArguments.Subject(directive)
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue