This commit is contained in:
gospider
2024-05-06 10:53:55 +08:00
parent c22970243a
commit c73d46169a
6 changed files with 20 additions and 10 deletions

View File

@@ -398,7 +398,7 @@ func (obj *DialClient) clientVerifyHttps(ctx context.Context, scheme string, pro
return errors.New("clientVerifyHttps not found port")
}
}
connectReq, err := newRequestWithContext(ctx, http.MethodConnect, &url.URL{Opaque: addr}, nil)
connectReq, err := NewRequestWithContext(ctx, http.MethodConnect, &url.URL{Opaque: addr}, nil)
if err != nil {
return err
}