1
0
mirror of https://github.com/Elegycloud/clash-backup.git synced 2024-12-22 20:47:25 +08:00
clash/rules/final.go
2023-11-11 16:07:53 +08:00

32 lines
412 B
Go

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
}
func (f *Final) Payload() string {
return ""
}
func NewFinal(adapter string) *Final {
return &Final{
adapter: adapter,
}
}