diff options
author | Roger Dingledine <arma@torproject.org> | 2004-11-11 13:24:10 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2004-11-11 13:24:10 +0000 |
commit | fde595feb7cb187cd80a2555975df067e3bf98b1 (patch) | |
tree | 50b66c74670bd32c8bed4970717da98760f5e135 | |
parent | 6252cba522e46dedbd250b8e2dede2e84ecb56f4 (diff) | |
download | tor-fde595feb7cb187cd80a2555975df067e3bf98b1.tar tor-fde595feb7cb187cd80a2555975df067e3bf98b1.tar.gz |
when clients do --list-fingerprint, it's misleading to
give them one, because it will never be the same again
svn:r2800
-rw-r--r-- | src/or/main.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/or/main.c b/src/or/main.c index fb415b34c..71fb293fa 100644 --- a/src/or/main.c +++ b/src/or/main.c @@ -1040,6 +1040,11 @@ static void do_list_fingerprint(void) char buf[FINGERPRINT_LEN+1]; crypto_pk_env_t *k; const char *nickname = get_options()->Nickname; + if(!server_mode(get_options())) { + printf("Clients don't have long-term identity keys. Exiting."); + return; + } + tor_assert(nickname); if (init_keys() < 0) { log_fn(LOG_ERR,"Error initializing keys; exiting"); return; @@ -1052,7 +1057,7 @@ static void do_list_fingerprint(void) log_fn(LOG_ERR, "Error computing fingerprint"); return; } - printf("%s %s\n", nickname?nickname:"client", buf); + printf("%s %s\n", nickname, buf); } /** Entry point for password hashing: take the desired password from |