Add fakeip support

This commit is contained in:
世界 2023-03-25 12:03:23 +08:00
parent aa94cfb876
commit 9bca5a517f
No known key found for this signature in database
GPG key ID: CD109927C34A63C4
28 changed files with 689 additions and 62 deletions

View file

@ -21,6 +21,8 @@ type Router interface {
Outbound(tag string) (Outbound, bool)
DefaultOutbound(network string) Outbound
FakeIPStore() FakeIPStore
RouteConnection(ctx context.Context, conn net.Conn, metadata InboundContext) error
RoutePacketConnection(ctx context.Context, conn N.PacketConn, metadata InboundContext) error