summaryrefslogtreecommitdiff
path: root/src/or/transports.c
diff options
context:
space:
mode:
authorGeorge Kadianakis <desnacked@gmail.com>2011-11-02 14:23:41 +0100
committerGeorge Kadianakis <desnacked@gmail.com>2011-11-02 14:23:41 +0100
commitd4ba301f29752bc533e59f508417ab1053b05d12 (patch)
tree8036f06878f890b7c86f331ed1b889b3d51f70a5 /src/or/transports.c
parent6b3c3b968f9607e45fa18f91cedfc8fce8d0d8cc (diff)
downloadtor-d4ba301f29752bc533e59f508417ab1053b05d12.tar.gz
tor-d4ba301f29752bc533e59f508417ab1053b05d12.zip
Tell the bridge operator on what ports his transports spawned.
- Add a LOG_WARN message when registering the transports of a server managed proxy, so that the bridge operator can see in what ports the transports spawned and notify his/her clients.
Diffstat (limited to 'src/or/transports.c')
-rw-r--r--src/or/transports.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/or/transports.c b/src/or/transports.c
index e60e98f4ea..76d7f0b5c3 100644
--- a/src/or/transports.c
+++ b/src/or/transports.c
@@ -305,7 +305,7 @@ launch_managed_proxy(managed_proxy_t *mp)
}
log_info(LD_CONFIG, "Managed proxy at '%s' has spawned with PID '%d'.",
- tor_process_get_pid(mp->process_handle));
+ mp->argv[0], tor_process_get_pid(mp->process_handle));
mp->conf_state = PT_PROTO_LAUNCHED;
@@ -465,6 +465,10 @@ register_server_proxy(managed_proxy_t *mp)
tor_assert(mp->conf_state != PT_PROTO_COMPLETED);
SMARTLIST_FOREACH_BEGIN(mp->transports, transport_t *, t) {
save_transport_to_state(t->name, &t->addr, t->port);
+ /* LOG_WARN so that the bridge operator can easily find the
+ transport's port in the log file and send it to the users. */
+ log_warn(LD_GENERAL, "Registered server transport '%s' at '%s:%d'",
+ t->name, fmt_addr(&t->addr), (int)t->port);
smartlist_add(sm_tmp, tor_strdup(t->name));
} SMARTLIST_FOREACH_END(t);