parent
81af74aad0
commit
c5224b1048
14 changed files with 43 additions and 41 deletions
|
@ -12,7 +12,7 @@ type ClassRule struct {
|
|||
fromClass, toClass uint16
|
||||
}
|
||||
|
||||
// Initializer
|
||||
// New initializes rule.
|
||||
func (rule ClassRule) New(args ...string) Rule {
|
||||
from, to := args[0], strings.Join(args[1:], " ")
|
||||
return &ClassRule{dns.StringToClass[from], dns.StringToClass[to]}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue