summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRob Stradling <rob@comodo.com>2017-05-02 15:23:41 +0100
committerRob Stradling <rob@comodo.com>2017-05-02 15:23:41 +0100
commit7e3854a580e4fb43dc26fa97e360303eb7ff61b1 (patch)
tree12ef883c7393690594dc37dc7f2abdc3a5f31304
parent92a7df1b65868c69d9425019dbc68d114e04ca74 (diff)
downloadct_monitor-7e3854a580e4fb43dc26fa97e360303eb7ff61b1.zip
ct_monitor-7e3854a580e4fb43dc26fa97e360303eb7ff61b1.tar.gz
ct_monitor-7e3854a580e4fb43dc26fa97e360303eb7ff61b1.tar.bz2
Don't forbid IPv6, and reduce the get-entries batch size from 1024 to 256.
Both of these changes are to support https://ct.filippo.io/behindthesofa
-rw-r--r--ct_monitor.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/ct_monitor.c b/ct_monitor.c
index 17c1cf2..7664976 100644
--- a/ct_monitor.c
+++ b/ct_monitor.c
@@ -346,9 +346,6 @@ int main(
printError(t_temp, PQgetvalue(t_PGresult_select, i, 3));
CURL_EASY_SETOPT(CURLOPT_URL, t_temp)
- /* Use IPv4 rather than IPv6 */
- CURL_EASY_SETOPT(CURLOPT_IPRESOLVE, CURL_IPRESOLVE_V4)
-
/* SETUP CURL HTTP OPTIONS */
/* CURLOPT_FOLLOWLOCATION: Don't follow "Location:" redirects */
CURL_EASY_SETOPT(CURLOPT_FOLLOWLOCATION, 0)
@@ -439,8 +436,8 @@ int main(
sprintf(
t_temp, "%s/ct/v1/get-entries?start=%d&end=%" LENGTH64 "d",
PQgetvalue(t_PGresult_select, i, 1), t_entryID,
- (t_treeSize > (t_entryID + 1023)) ?
- (t_entryID + 1023) : (t_treeSize - 1)
+ (t_treeSize > (t_entryID + 255)) ?
+ (t_entryID + 255) : (t_treeSize - 1)
);
printError(t_temp, NULL);