aboutsummaryrefslogtreecommitdiff
path: root/src/or/router.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/or/router.c')
-rw-r--r--src/or/router.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/or/router.c b/src/or/router.c
index 7f07047a01..cf018efb04 100644
--- a/src/or/router.c
+++ b/src/or/router.c
@@ -349,12 +349,7 @@ int init_keys(void) {
/* 6b. [authdirserver only] add own key to approved directories. */
crypto_pk_get_digest(get_identity_key(), digest);
if (!router_digest_is_trusted_dir(digest)) {
- uint32_t addr;
- if(resolve_my_address(options.Address, &addr) < 0) {
- log_fn(LOG_WARN,"options.Address didn't resolve into an IP.");
- return -1;
- }
- add_trusted_dir_server(addr, options.DirPort, digest);
+ add_trusted_dir_server(options.Address, options.DirPort, digest);
}
/* 7. [authdirserver only] load old directory, if it's there */
sprintf(keydir,"%s/cached-directory", datadir);