소스 검색

Fix a bug in inbound detour handler

v2ray 10 년 전
부모
커밋
73807390f1
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      shell/point/inbound_detour.go

+ 1 - 1
shell/point/inbound_detour.go

@@ -28,7 +28,7 @@ func (this *InboundDetourHandler) Initialize() error {
 	}
 
 	ports := this.config.PortRange()
-	this.ich = make([]*InboundConnectionHandlerWithPort, 0, ports.From()-ports.To()+1)
+	this.ich = make([]*InboundConnectionHandlerWithPort, 0, ports.To()-ports.From()+1)
 	for i := ports.From(); i <= ports.To(); i++ {
 		ichConfig := this.config.Settings()
 		ich, err := ichFactory.Create(this.point, ichConfig)