mirror of
https://gitclone.com/github.com/MetaCubeX/Clash.Meta
synced 2024-11-15 05:31:18 +08:00
28 lines
363 B
Go
28 lines
363 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 NewFinal(adapter string) *Final {
|
||
|
return &Final{
|
||
|
adapter: adapter,
|
||
|
}
|
||
|
}
|