C "github.com/Dreamacro/clash/constant" ) type Port struct { adapter string port string isSource bool } func (p *Port) RuleType() C.RuleType { if p.isSource { return C.SrcPort } return C.DstPort } func (p *Port) IsMatch(metadata *C.Metadata) bool { if p.isSource { return ...
C "github.com/Dreamacro/clash/constant" ) type Port struct { adapter string port string isSource bool } func (p *Port) RuleType() C.RuleType { if p.isSource { return C.SrcPort } return C.DstPort } func (p *Port) IsMatch(metadata *C.Metadata) bool { if p.isSource { return ...