소스 검색

simplify code

v2ray 9 년 전
부모
커밋
8f1c4b7f71
1개의 변경된 파일2개의 추가작업 그리고 4개의 파일을 삭제
  1. 2 4
      shell/point/point.go

+ 2 - 4
shell/point/point.go

@@ -160,10 +160,8 @@ func (this *Point) DispatchToOutbound(context app.Context, packet v2net.Packet)
 	dispatcher := this.och
 
 	if this.router != nil {
-		tag, err := this.router.TakeDetour(dest)
-		if err == nil {
-			handler, found := this.odh[tag]
-			if found {
+		if tag, err := this.router.TakeDetour(dest); err == nil {
+			if handler, found := this.odh[tag]; found {
 				dispatcher = handler
 			}
 		}