diff options
author | George Kadianakis <desnacked@riseup.net> | 2013-01-23 12:41:19 +0200 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2013-08-25 10:37:03 -0400 |
commit | 6dd462e8bcaecb8224302b402214b546cf790c5f (patch) | |
tree | fdb0bd0e1029d1c5d9b6a3967b1adaa9203b196d /src/or/transports.c | |
parent | 2452302354fdd6d34e1637380ffc73af067fd904 (diff) | |
download | tor-6dd462e8bcaecb8224302b402214b546cf790c5f.tar.gz tor-6dd462e8bcaecb8224302b402214b546cf790c5f.zip |
Implement the TRANSPORT_LAUNCHED control port event.
Diffstat (limited to 'src/or/transports.c')
-rw-r--r-- | src/or/transports.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/or/transports.c b/src/or/transports.c index f6bbbe81c5..f9499eb6d8 100644 --- a/src/or/transports.c +++ b/src/or/transports.c @@ -98,6 +98,7 @@ #include "entrynodes.h" #include "connection_or.h" #include "ext_orport.h" +#include "control.h" static process_environment_t * create_managed_proxy_environment(const managed_proxy_t *mp); @@ -659,6 +660,7 @@ register_server_proxy(const managed_proxy_t *mp) save_transport_to_state(t->name, &t->addr, t->port); log_notice(LD_GENERAL, "Registered server transport '%s' at '%s'", t->name, fmt_addrport(&t->addr, t->port)); + control_event_transport_launched("server", t->name, &t->addr, t->port); } SMARTLIST_FOREACH_END(t); } @@ -681,9 +683,11 @@ register_client_proxy(const managed_proxy_t *mp) break; case 0: log_info(LD_GENERAL, "Successfully registered transport %s", t->name); + control_event_transport_launched("client", t->name, &t->addr, t->port); break; case 1: log_info(LD_GENERAL, "Successfully registered transport %s", t->name); + control_event_transport_launched("client", t->name, &t->addr, t->port); transport_free(transport_tmp); break; } |