mihomo/rules/final.go

32 lines
412 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
}
func (f *Final) IsMatch(addr *C.Addr) bool {
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,
}
}