[tor-commits] [torbutton/master] Bug 33862: Fix usages of createTransport API
gk at torproject.org
gk at torproject.org
Sun Jun 14 15:37:20 UTC 2020
commit 89db1e89f4295188c236831c1a2d89d5160c8dda
Author: Alex Catarineu <acat at torproject.org>
Date: Thu Apr 9 18:48:01 2020 +0200
Bug 33862: Fix usages of createTransport API
There was a nsISocketTransportService breaking change in
https://bugzilla.mozilla.org/show_bug.cgi?id=1558726.
---
chrome/content/torbutton.js | 2 +-
modules/tor-control-port.js | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/chrome/content/torbutton.js b/chrome/content/torbutton.js
index 0ca37789..0d2e7e2d 100644
--- a/chrome/content/torbutton.js
+++ b/chrome/content/torbutton.js
@@ -704,7 +704,7 @@ function torbutton_send_ctrl_cmd(command) {
if (m_tb_control_ipc_file) {
socket = sts.createUnixDomainTransport(m_tb_control_ipc_file);
} else {
- socket = sts.createTransport(null, 0, m_tb_control_host,
+ socket = sts.createTransport([], m_tb_control_host,
m_tb_control_port, null);
}
diff --git a/modules/tor-control-port.js b/modules/tor-control-port.js
index 2b0849e9..a3e72dd5 100644
--- a/modules/tor-control-port.js
+++ b/modules/tor-control-port.js
@@ -55,7 +55,7 @@ io.asyncSocketStreams = function (ipcFile, host, port) {
if (ipcFile) {
socketTransport = sts.createUnixDomainTransport(ipcFile);
} else {
- socketTransport = sts.createTransport(null, 0, host, port, null);
+ socketTransport = sts.createTransport([], host, port, null);
}
// Open unbuffered asynchronous outputStream.
More information about the tor-commits
mailing list