clash/rules/final.go

32 lines
420 B
Go
Raw Normal View History

2018-06-10 22:50:03 +08:00
package rules
import (
C "github.com/Dreamacro/clash/constant"
)
type Final struct {
adapter string
}
func (f *Final) RuleType() C.RuleType {
return C.FINAL
}
2018-09-30 12:25:52 +08:00
func (f *Final) IsMatch(metadata *C.Metadata) bool {
2018-06-10 22:50:03 +08:00
return true
}
func (f *Final) Adapter() string {
return f.adapter
}
2018-06-20 22:41:02 +08:00
func (f *Final) Payload() string {
return ""
}
2018-06-10 22:50:03 +08:00
func NewFinal(adapter string) *Final {
return &Final{
adapter: adapter,
}
}