mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-12 18:59:06 +01:00
17 lines
757 B
Diff
17 lines
757 B
Diff
diff -Bbur jtorctl/net/freehaven/tor/control/TorControlConnection.java jtorctl-briar/net/freehaven/tor/control/TorControlConnection.java
|
|
--- jtorctl/net/freehaven/tor/control/TorControlConnection.java 2014-10-03 12:21:51.883098440 +0100
|
|
+++ jtorctl-briar/net/freehaven/tor/control/TorControlConnection.java 2014-10-03 12:17:07.429687913 +0100
|
|
@@ -728,5 +728,12 @@
|
|
sendAndWaitForResponse("CLOSECIRCUIT "+circID+
|
|
(ifUnused?" IFUNUSED":"")+"\r\n", null);
|
|
}
|
|
+
|
|
+ /** Tells Tor to exit when this control connection is closed. This command
|
|
+ * was added in Tor 0.2.2.28-beta.
|
|
+ */
|
|
+ public void takeOwnership() throws IOException {
|
|
+ sendAndWaitForResponse("TAKEOWNERSHIP\r\n", null);
|
|
+ }
|
|
}
|
|
|