mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-20 10:12:15 +01:00
give a better warning when tor points at an https server.
svn:r3706
This commit is contained in:
parent
25ff3a5042
commit
bed6c05453
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user