diff options
author | Nick Mathewson <nickm@torproject.org> | 2011-05-09 12:13:37 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2011-05-13 10:41:28 -0400 |
commit | dad12188a6ca957f6fde1eb602fd98b2fa93b1a4 (patch) | |
tree | ac7c2d4d5e1ff39675df1bc3723b57ec453b4b92 /src/or/connection.c | |
parent | c55c8f0d4926481ea2cf49e14915688de2eb4938 (diff) | |
download | tor-dad12188a6ca957f6fde1eb602fd98b2fa93b1a4.tar.gz tor-dad12188a6ca957f6fde1eb602fd98b2fa93b1a4.zip |
Write automatically-chosen control ports to a file.
Diffstat (limited to 'src/or/connection.c')
-rw-r--r-- | src/or/connection.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/or/connection.c b/src/or/connection.c index bc18dab1ec..01b533d9b5 100644 --- a/src/or/connection.c +++ b/src/or/connection.c @@ -998,6 +998,9 @@ connection_create_listener(const struct sockaddr *listensockaddr, "%s listening on port %u.", conn_type_to_string(type), gotPort); + if (type == CONN_TYPE_CONTROL_LISTENER) + control_ports_write_to_file(); + conn->state = LISTENER_STATE_READY; if (start_reading) { connection_start_reading(conn); |