Fix: DialWithoutCache3 misbehave

pull/170/head
Shelikhoo 9 years ago
parent 7fdf0de06d
commit 579786166c
No known key found for this signature in database
GPG Key ID: 7791BDB0709ABD21

@ -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) {
if proxyMeta.KcpSupported && transport.IsKcpEnabled() {
return DialKCPWithoutCache(src, dest)
}
return DialWithoutCache(src, dest)
}

Loading…
Cancel
Save