mirror of
https://github.com/coredns/coredns.git
synced 2025-12-15 23:05:16 -05:00
@@ -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]}
|
||||
|
||||
Reference in New Issue
Block a user