fixup! An attempt at bug3940 and making AllowDotExit 0 work with MapAddress

This commit is contained in:
Nick Mathewson 2012-06-11 21:50:52 -04:00
parent c18b6ec3d4
commit ba9a12119c

View File

@ -1935,8 +1935,8 @@ connection_ap_handshake_rewrite_and_attach(entry_connection_t *conn,
(exit_source == ADDRMAPSRC_NONE && !options->AllowDotExit)) { (exit_source == ADDRMAPSRC_NONE && !options->AllowDotExit)) {
/* It shouldn't be possible to get a .exit address from any of these /* It shouldn't be possible to get a .exit address from any of these
* sources. */ * sources. */
log_warn(LD_BUG,"Address '%s.exit', with impossible source for the .exit " log_warn(LD_BUG,"Address '%s.exit', with impossible source for the "
"part. Refusing.", ".exit part. Refusing.",
safe_str_client(socks->address)); safe_str_client(socks->address));
control_event_client_status(LOG_WARN, "SOCKS_BAD_HOSTNAME HOSTNAME=%s", control_event_client_status(LOG_WARN, "SOCKS_BAD_HOSTNAME HOSTNAME=%s",
escaped(socks->address)); escaped(socks->address));