1
0
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:
v2ray
2015-12-07 22:47:47 +01:00
parent a7c2425c9c
commit aab774e78f
19 changed files with 60 additions and 54 deletions

View 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
}