diff --git a/network/tor/tor/src/main/java/bisq/tor/controller/WhonixTorController.java b/network/tor/tor/src/main/java/bisq/tor/controller/WhonixTorController.java index dbdde8447b..821a915c47 100644 --- a/network/tor/tor/src/main/java/bisq/tor/controller/WhonixTorController.java +++ b/network/tor/tor/src/main/java/bisq/tor/controller/WhonixTorController.java @@ -62,6 +62,15 @@ public void resetConf(String configName) throws IOException { } } + public void setConfig(String configName, String configValue) throws IOException { + String command = "SETCONF " + configName + "=" + configValue + "\r\n"; + sendCommand(command); + String reply = receiveReply(); + if (!reply.equals("250 OK")) { + throw new ControlCommandFailedException("Couldn't set config: " + configName + "=" + configValue); + } + } + public void setEvents(List events) throws IOException { var stringBuilder = new StringBuffer("SETEVENTS"); events.forEach(event -> stringBuilder.append(" ").append(event));