aboutsummaryrefslogtreecommitdiff
path: root/src/or/config.h
diff options
context:
space:
mode:
authorGeorge Kadianakis <desnacked@riseup.net>2012-03-31 14:04:58 +0200
committerGeorge Kadianakis <desnacked@riseup.net>2012-03-31 14:04:58 +0200
commit10232dc0423792a8fb61b9ec136d7ffd5484216b (patch)
tree76e2b7b2696a11b1ce02eec2cad64eab90e0b061 /src/or/config.h
parentfedf76a2e6452124c38ecc51cea6567b9d5cc23d (diff)
downloadtor-10232dc0423792a8fb61b9ec136d7ffd5484216b.tar
tor-10232dc0423792a8fb61b9ec136d7ffd5484216b.tar.gz
Pass OR address to PT proxy, even with IPv6 or ORListenAddress.
Introduce get_first_listener_addrport_for_pt() which returns a string containing the addrport of the first listener we could find. Use it to form the TOR_PT_ORPORT managed proxy protocol line.
Diffstat (limited to 'src/or/config.h')
-rw-r--r--src/or/config.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/or/config.h b/src/or/config.h
index 0f7c61886..fd84d9b60 100644
--- a/src/or/config.h
+++ b/src/or/config.h
@@ -72,6 +72,8 @@ int get_first_advertised_port_by_type_af(int listener_type,
#define get_primary_dir_port() \
(get_first_advertised_port_by_type_af(CONN_TYPE_DIR_LISTENER, AF_INET))
+char *get_first_listener_addrport_for_pt(int listener_type);
+
int options_need_geoip_info(const or_options_t *options,
const char **reason_out);