Ver código fonte

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

svn:r3706
Nick Mathewson 20 anos atrás
pai
commit
bed6c05453
1 arquivos alterados com 2 adições e 0 exclusões
  1. 2 0
      src/common/tortls.c

+ 2 - 0
src/common/tortls.c

@@ -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);