1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2026-04-28 08:29:12 -04:00

extract all session context before checking conditions

This commit is contained in:
Darien Raymond
2019-02-28 09:28:55 +01:00
parent cc513c1002
commit 0d31a68694
5 changed files with 103 additions and 113 deletions

View File

@@ -3,9 +3,7 @@
package router
import (
"context"
net "v2ray.com/core/common/net"
"v2ray.com/core/common/net"
"v2ray.com/core/features/outbound"
)
@@ -61,7 +59,7 @@ func (r *Rule) GetTag() (string, error) {
return r.Tag, nil
}
func (r *Rule) Apply(ctx context.Context) bool {
func (r *Rule) Apply(ctx *Context) bool {
return r.Condition.Apply(ctx)
}