give a better warning when tor points at an https server.

svn:r3706
This commit is contained in:
Nick Mathewson 2005-02-28 01:55:09 +00:00
parent 25ff3a5042
commit bed6c05453

View File

@ -627,6 +627,8 @@ tor_tls_get_peer_cert_nickname(tor_tls *tls, char *buf, size_t buflen)
if (((int)strspn(buf, LEGAL_NICKNAME_CHARACTERS)) < lenout) {
log_fn(LOG_WARN, "Peer certificate nickname '%s' has illegal characters.",
buf);
if (strchr(buf, '.'))
log_fn(LOG_WARN, " (Maybe it is not really running Tor at its advertised OR port.)");
goto error;
}
X509_free(cert);