[tor-commits] [torspec/master] control-spec: Add the PT_LOG event
nickm at torproject.org
nickm at torproject.org
Thu Jan 17 17:03:44 UTC 2019
commit 3028cf166067cd688683bdf674d462869f7565ec
Author: David Goulet <dgoulet at torproject.org>
Date: Thu Oct 25 12:08:41 2018 -0400
control-spec: Add the PT_LOG event
Once we add the LOG message on the PT side, Tor will relay it to the control
port through this event named PT_LOG.
This is to address #25502. Implemented in #28179.
Closes #28182
Signed-off-by: David Goulet <dgoulet at torproject.org>
---
control-spec.txt | 23 +++++++++++++++++++++++
1 file changed, 23 insertions(+)
diff --git a/control-spec.txt b/control-spec.txt
index fb4cb3e..4135add 100644
--- a/control-spec.txt
+++ b/control-spec.txt
@@ -3260,6 +3260,29 @@
[NETWORK_LIVENESS was added in Tor 0.2.7.2-alpha]
+4.1.28. Pluggable Transport Logs
+
+ Syntax:
+ "650" SP "PT_LOG" SP PT=Program SP Message
+
+ Program = The program path as defined in the *TransportPlugin
+ configuration option. Tor accepts relative and full path.
+ Message = The log message that the PT sends back to the tor parent
+ process minus the "LOG" string prefix. Formatted as
+ specified in pt-spec.txt section 3.3.4.
+
+ This event is triggered when tor receives a log message from the PT.
+
+ Example:
+
+ PT (obfs4): LOG SEVERITY=debug MESSAGE="Connected to bridge A"
+
+ the resulting control port event would be:
+
+ Tor: 650 PT_LOG PT=/usr/bin/obfs4proxy SEVERITY=debug MESSAGE="Connected to bridge A"
+
+ [PT_LOG was added in Tor 0.4.0.1-alpha]
+
5. Implementation notes
5.1. Authentication
More information about the tor-commits
mailing list