Chore: adjust dial tcp timeout

This commit is contained in:
Dreamacro
2018-10-22 21:14:22 +08:00
parent 4895bcefca
commit 082d3bbf04
5 changed files with 8 additions and 4 deletions

View File

@ -10,6 +10,10 @@ import (
C "github.com/Dreamacro/clash/constant"
)
const (
tcpTimeout = 5 * time.Second
)
// DelayTest get the delay for the specified URL
func DelayTest(proxy C.Proxy, url string) (t int16, err error) {
addr, err := urlToMetadata(url)