Improve bridge

This commit is contained in:
世界
2026-08-30 17:41:42 +08:00
parent 1e2f1d04da
commit 97bbf2a9a4
21 changed files with 276 additions and 191 deletions
+1
View File
@@ -94,6 +94,7 @@ type InboundContext struct {
SourceHostname string
QueryType uint16
FakeIP bool
PreMatch bool
// rule cache
+3 -3
View File
@@ -22,14 +22,14 @@ type Outbound interface {
type OutboundWithPreferredRoutes interface {
Outbound
PreferredDomain(domain string) bool
PreferredAddress(address netip.Addr) bool
PreferredDomain(metadata *InboundContext, domain string) bool
PreferredAddress(metadata *InboundContext, address netip.Addr) bool
}
type FlowOutbound interface {
Outbound
tun.Port
SupportsFlow(network string) bool
PreMatchFlow(network string, destination netip.Addr) PreMatchAction
}
type OutboundRegistry interface {