mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-12-28 04:55:37 -05:00
split listening settings from inbound proxies and apply context
This commit is contained in:
@@ -41,7 +41,8 @@ func TestSimpleRouter(t *testing.T) {
|
||||
|
||||
r := FromSpace(space)
|
||||
|
||||
tag, err := r.TakeDetour(&proxy.SessionInfo{Destination: net.TCPDestination(net.DomainAddress("v2ray.com"), 80)})
|
||||
ctx = proxy.ContextWithDestination(ctx, net.TCPDestination(net.DomainAddress("v2ray.com"), 80))
|
||||
tag, err := r.TakeDetour(ctx)
|
||||
assert.Error(err).IsNil()
|
||||
assert.String(tag).Equals("test")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user