Browse Source

Fix forced outbound tag not set correctly

Shelikhoo 4 years ago
parent
commit
6925870600
1 changed files with 1 additions and 1 deletions
  1. 1 1
      transport/internet/tagged/taggedimpl/impl.go

+ 1 - 1
transport/internet/tagged/taggedimpl/impl.go

@@ -19,9 +19,9 @@ func DialTaggedOutbound(ctx context.Context, dest net.Destination, tag string) (
 
 
 	content := new(session.Content)
 	content := new(session.Content)
 	content.SkipDNSResolve = true
 	content.SkipDNSResolve = true
-	session.SetForcedOutboundTagToContext(ctx, tag)
 
 
 	ctx = session.ContextWithContent(ctx, content)
 	ctx = session.ContextWithContent(ctx, content)
+	session.SetForcedOutboundTagToContext(ctx, tag)
 
 
 	r, err := dispatcher.Dispatch(ctx, dest)
 	r, err := dispatcher.Dispatch(ctx, dest)
 	if err != nil {
 	if err != nil {