diff options
author | Nick Mathewson <nickm@torproject.org> | 2006-10-09 18:19:32 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2006-10-09 18:19:32 +0000 |
commit | 69e0843f7cd51a742334d1d10aa88a074d3cb0db (patch) | |
tree | a1fb6590ea03d8649456ee2d0209f1a261089bbd /src | |
parent | 8ca4e143a962b9fc50a6e2011761ec55d61336b6 (diff) | |
download | tor-69e0843f7cd51a742334d1d10aa88a074d3cb0db.tar.gz tor-69e0843f7cd51a742334d1d10aa88a074d3cb0db.zip |
r8983@totoro: nickm | 2006-10-09 14:19:18 -0400
Add missing ! to code to generate short/verbose nicknames for orconn events.
svn:r8674
Diffstat (limited to 'src')
-rw-r--r-- | src/or/control.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/or/control.c b/src/or/control.c index e839cea621..a9f0c364f4 100644 --- a/src/or/control.c +++ b/src/or/control.c @@ -2975,7 +2975,7 @@ static void orconn_target_get_name(int long_names, char *name, size_t len, or_connection_t *conn) { - if (long_names) { + if (! long_names) { if (conn->nickname) strlcpy(name, conn->nickname, len); else @@ -2990,8 +2990,8 @@ orconn_target_get_name(int long_names, name[0] = '$'; base16_encode(name+1, len-1, conn->identity_digest, DIGEST_LEN); - } else { - tor_snprintf(name, len, "%s:%d", + } else { + tor_snprintf(name, len, "%s:%d", conn->_base.address, conn->_base.port); } } |