mirror of
https://github.com/shtorm-7/sing-box-extended.git
synced 2026-07-17 21:31:04 +03:00
Inbound rule support
This commit is contained in:
@@ -12,4 +12,11 @@ type Router interface {
|
||||
Outbound(tag string) (Outbound, bool)
|
||||
RouteConnection(ctx context.Context, conn net.Conn, metadata InboundContext) error
|
||||
RoutePacketConnection(ctx context.Context, conn N.PacketConn, metadata InboundContext) error
|
||||
Close() error
|
||||
}
|
||||
|
||||
type Rule interface {
|
||||
Match(metadata InboundContext) bool
|
||||
Outbound() string
|
||||
String() string
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user