1
0
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:
Shelikhoo 2021-02-28 19:57:21 +00:00
parent 5f3851df39
commit 6925870600
No known key found for this signature in database
GPG Key ID: C4D5E79D22B25316

View File

@ -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 {