소스 검색

Fix forced outbound tag not set correctly

Shelikhoo 4 년 전
부모
커밋
6925870600
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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 {