Explorar el Código

Fix forced outbound tag not set correctly

Shelikhoo hace 4 años
padre
commit
6925870600
Se han modificado 1 ficheros con 1 adiciones y 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 {