Refactor rules

This commit is contained in:
世界
2023-06-07 20:28:21 +08:00
parent 52b776b561
commit aa94cfb876
39 changed files with 816 additions and 918 deletions

View File

@@ -27,7 +27,7 @@ type InjectableInbound interface {
type InboundContext struct {
Inbound string
InboundType string
IPVersion int
IPVersion uint8
Network string
Source M.Socksaddr
Destination M.Socksaddr

View File

@@ -77,6 +77,7 @@ type Rule interface {
type DNSRule interface {
Rule
DisableCache() bool
RewriteTTL() *uint32
}
type InterfaceUpdateListener interface {