From 73807390f1b2ad79995f9e6eacece143fdd17284 Mon Sep 17 00:00:00 2001 From: v2ray Date: Thu, 3 Dec 2015 20:57:33 +0100 Subject: [PATCH] Fix a bug in inbound detour handler --- shell/point/inbound_detour.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shell/point/inbound_detour.go b/shell/point/inbound_detour.go index eb2a7262e..4d405728e 100644 --- a/shell/point/inbound_detour.go +++ b/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)