Browse Source

Fix: DialWithoutCache3 misbehave

Shelikhoo 9 years ago
parent
commit
579786166c
1 changed files with 1 additions and 0 deletions
  1. 1 0
      transport/hub/dialer.go

+ 1 - 0
transport/hub/dialer.go

@@ -72,6 +72,7 @@ func Dial3(src v2net.Address, dest v2net.Destination, proxyMeta *proxy.OutboundH
 }
 }
 func DialWithoutCache3(src v2net.Address, dest v2net.Destination, proxyMeta *proxy.OutboundHandlerMeta) (net.Conn, error) {
 func DialWithoutCache3(src v2net.Address, dest v2net.Destination, proxyMeta *proxy.OutboundHandlerMeta) (net.Conn, error) {
 	if proxyMeta.KcpSupported && transport.IsKcpEnabled() {
 	if proxyMeta.KcpSupported && transport.IsKcpEnabled() {
+		return DialKCPWithoutCache(src, dest)
 	}
 	}
 	return DialWithoutCache(src, dest)
 	return DialWithoutCache(src, dest)
 }
 }