diff --git a/adapter/adapter.go b/adapter/adapter.go index 094d9eb..db54bbe 100644 --- a/adapter/adapter.go +++ b/adapter/adapter.go @@ -161,7 +161,8 @@ func (p *Proxy) URLTest(ctx context.Context, url string) (delay, meanDelay uint1 resp, err = client.Do(req) if err != nil { - return + // ignore error because some server will hijack the connection and close immediately + return delay, 0, nil } resp.Body.Close() meanDelay = uint16(time.Since(start) / time.Millisecond / 2)