Explorar o código

Fix forced outbound tag not set correctly

Shelikhoo %!s(int64=4) %!d(string=hai) anos
pai
achega
6925870600
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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.SkipDNSResolve = true
-	session.SetForcedOutboundTagToContext(ctx, tag)
 
 	ctx = session.ContextWithContent(ctx, content)
+	session.SetForcedOutboundTagToContext(ctx, tag)
 
 	r, err := dispatcher.Dispatch(ctx, dest)
 	if err != nil {