|
@@ -1080,6 +1080,25 @@ rend_service_update_descriptor(rend_service_t *service)
|
|
|
intro_svc->time_published = time(NULL);
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
+ unsigned int have_intro = (unsigned int)smartlist_len(d->intro_nodes);
|
|
|
+ if (have_intro != service->n_intro_points_wanted) {
|
|
|
+ int severity;
|
|
|
+
|
|
|
+ if (have_intro < service->n_intro_points_wanted ||
|
|
|
+ have_intro > NUM_INTRO_POINTS_MAX) {
|
|
|
+ severity = LOG_WARN;
|
|
|
+ } else {
|
|
|
+
|
|
|
+ severity = LOG_NOTICE;
|
|
|
+ }
|
|
|
+ log_fn(severity, LD_REND, "Hidden service %s wanted %d intro points, but "
|
|
|
+ "descriptor was updated with %d instead.",
|
|
|
+ service->service_id,
|
|
|
+ service->n_intro_points_wanted, have_intro);
|
|
|
+ rend_service_dump_stats(severity);
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
|