make it less noisy for normal ORs when a server uses a false nickname

svn:r1359
This commit is contained in:
Roger Dingledine 2004-03-28 21:35:02 +00:00
parent 4a5586b8e3
commit 8c3999c964

View File

@ -233,7 +233,8 @@ static int connection_tls_finish_handshake(connection_t *conn) {
}
crypto_free_pk_env(pk);
if (strcmp(conn->nickname, nickname)) {
log_fn(LOG_WARN,"Other side claims to be '%s', but we wanted '%s'",
log_fn(options.DirPort ? LOG_WARN : LOG_INFO,
"Other side claims to be '%s', but we expected '%s'",
nickname, conn->nickname);
return -1;
}