aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorteor <teor@torproject.org>2018-07-25 14:33:10 +1000
committerteor <teor@torproject.org>2018-07-25 14:33:10 +1000
commitfdc3ad6259095b3f15eeb96e998bf078083449dd (patch)
tree60f3eafac8dfb0f48af7eacc137526fcd6d2137f /src
parentbe3a962ca7c6fc5fd72dfd9bb1def24efa4cdf2a (diff)
parent6443812e343635d0db6ea1aac58b817732b7f29a (diff)
downloadtor-fdc3ad6259095b3f15eeb96e998bf078083449dd.tar.gz
tor-fdc3ad6259095b3f15eeb96e998bf078083449dd.zip
Merge branch 'bug26924_029' into bug26924_032
Diffstat (limited to 'src')
-rw-r--r--src/or/connection_or.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/or/connection_or.c b/src/or/connection_or.c
index fd8c5fc7f2..add0493d23 100644
--- a/src/or/connection_or.c
+++ b/src/or/connection_or.c
@@ -49,6 +49,7 @@
#include "proto_cell.h"
#include "reasons.h"
#include "relay.h"
+#include "rendcommon.h"
#include "rephist.h"
#include "router.h"
#include "routerkeys.h"
@@ -1677,10 +1678,13 @@ connection_or_client_learned_peer_id(or_connection_t *conn,
conn->identity_digest);
const int is_authority_fingerprint = router_digest_is_trusted_dir(
conn->identity_digest);
+ const int non_anonymous_mode = rend_non_anonymous_mode_enabled(options);
int severity;
const char *extra_log = "";
- if (server_mode(options)) {
+ /* Relays, Single Onion Services, and Tor2web make direct connections using
+ * untrusted authentication keys. */
+ if (server_mode(options) || non_anonymous_mode) {
severity = LOG_PROTOCOL_WARN;
} else {
if (using_hardcoded_fingerprints) {