diff options
author | Nick Mathewson <nickm@torproject.org> | 2020-07-21 12:34:56 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2020-07-21 12:47:33 -0400 |
commit | f478080bd08033473dfedcf0f51f0be767b985f5 (patch) | |
tree | 74cd3af16cd6e9f2572a88e262a7ae88642c6141 /src/feature/dirauth | |
parent | 39146383fc30ee7cce61e3d5d753ae8605dddc22 (diff) | |
download | tor-f478080bd08033473dfedcf0f51f0be767b985f5.tar.gz tor-f478080bd08033473dfedcf0f51f0be767b985f5.zip |
Combine router_get_advertised_or_port{,by_af_}() functions
Diffstat (limited to 'src/feature/dirauth')
-rw-r--r-- | src/feature/dirauth/dirvote.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/feature/dirauth/dirvote.c b/src/feature/dirauth/dirvote.c index c067c9b85e..b0583a42f7 100644 --- a/src/feature/dirauth/dirvote.c +++ b/src/feature/dirauth/dirvote.c @@ -4725,7 +4725,7 @@ dirserv_generate_networkstatus_vote_obj(crypto_pk_t *private_key, voter->address = hostname; tor_addr_copy(&voter->ipv4_addr, &addr); voter->ipv4_dirport = router_get_advertised_dir_port(options, 0); - voter->ipv4_orport = router_get_advertised_or_port(options); + voter->ipv4_orport = router_get_advertised_or_port(options, AF_INET); voter->contact = tor_strdup(contact); if (options->V3AuthUseLegacyKey) { authority_cert_t *c = get_my_v3_legacy_cert(); |