Pass OR address to PT proxy, even with IPv6 or ORListenAddress.
commit10232dc0423792a8fb61b9ec136d7ffd5484216b
authorGeorge Kadianakis <desnacked@riseup.net>
Sat, 31 Mar 2012 12:04:58 +0000 (31 14:04 +0200)
committerGeorge Kadianakis <desnacked@riseup.net>
Sat, 31 Mar 2012 12:04:58 +0000 (31 14:04 +0200)
tree76e2b7b2696a11b1ce02eec2cad64eab90e0b061
parentfedf76a2e6452124c38ecc51cea6567b9d5cc23d
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.
src/or/config.c
src/or/config.h
src/or/transports.c