diff options
Diffstat (limited to 'src/or/config.h')
-rw-r--r-- | src/or/config.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/or/config.h b/src/or/config.h index e1fc5cfe9..a202bffa5 100644 --- a/src/or/config.h +++ b/src/or/config.h @@ -64,7 +64,12 @@ or_state_t *get_or_state(void); int did_last_state_file_write_fail(void); int or_state_save(time_t now); -const smartlist_t *get_configured_client_ports(void); +const smartlist_t *get_configured_ports(void); +int get_first_advertised_v4_port_by_type(int listener_type); +#define get_primary_or_port() \ + (get_first_advertised_v4_port_by_type(CONN_TYPE_OR_LISTENER)) +#define get_primary_dir_port() \ + (get_first_advertised_v4_port_by_type(CONN_TYPE_DIR_LISTENER)) int options_need_geoip_info(const or_options_t *options, const char **reason_out); |