mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-12-31 06:25:32 -05:00
simplify router config
This commit is contained in:
14
app/router/rules/config.go
Normal file
14
app/router/rules/config.go
Normal file
@@ -0,0 +1,14 @@
|
||||
package rules
|
||||
|
||||
import (
|
||||
v2net "github.com/v2ray/v2ray-core/common/net"
|
||||
)
|
||||
|
||||
type Rule interface {
|
||||
Tag() string
|
||||
Apply(dest v2net.Destination) bool
|
||||
}
|
||||
|
||||
type RouterRuleConfig interface {
|
||||
Rules() []Rule
|
||||
}
|
||||
Reference in New Issue
Block a user