mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-12-30 14:06:58 -05:00
Fix forced outbound tag not set correctly
This commit is contained in:
parent
5f3851df39
commit
6925870600
@ -19,9 +19,9 @@ func DialTaggedOutbound(ctx context.Context, dest net.Destination, tag string) (
|
||||
|
||||
content := new(session.Content)
|
||||
content.SkipDNSResolve = true
|
||||
session.SetForcedOutboundTagToContext(ctx, tag)
|
||||
|
||||
ctx = session.ContextWithContent(ctx, content)
|
||||
session.SetForcedOutboundTagToContext(ctx, tag)
|
||||
|
||||
r, err := dispatcher.Dispatch(ctx, dest)
|
||||
if err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user