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