diff options
author | Linus Nordberg <linus@nordberg.se> | 2011-11-24 17:49:31 +0100 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2011-11-30 11:55:45 -0500 |
commit | 5bee213d236943dac2e08e04c1525e96a62f13f7 (patch) | |
tree | ee4bc2c0a7264444f6a6595fc86d3298328cdc59 /src/or/config.h | |
parent | 1c2c3314a9b8990533cc8632d0a02aa5f79950b6 (diff) | |
download | tor-5bee213d236943dac2e08e04c1525e96a62f13f7.tar.gz tor-5bee213d236943dac2e08e04c1525e96a62f13f7.zip |
Turn get_first_advertised_v4_port_by_type() into get_first_advertised_port_by_type_af().
Diffstat (limited to 'src/or/config.h')
-rw-r--r-- | src/or/config.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/or/config.h b/src/or/config.h index a202bffa50..cbba9e697d 100644 --- a/src/or/config.h +++ b/src/or/config.h @@ -65,11 +65,11 @@ int did_last_state_file_write_fail(void); int or_state_save(time_t now); const smartlist_t *get_configured_ports(void); -int get_first_advertised_v4_port_by_type(int listener_type); +int get_first_advertised_port_by_type_af(int listener_type, int address_family); #define get_primary_or_port() \ - (get_first_advertised_v4_port_by_type(CONN_TYPE_OR_LISTENER)) + (get_first_advertised_port_by_type_af(CONN_TYPE_OR_LISTENER, AF_INET)) #define get_primary_dir_port() \ - (get_first_advertised_v4_port_by_type(CONN_TYPE_DIR_LISTENER)) + (get_first_advertised_port_by_type_af(CONN_TYPE_DIR_LISTENER, AF_INET)) int options_need_geoip_info(const or_options_t *options, const char **reason_out); |