diff --git a/network/tor/src/main/java/bisq/tor/process/NativeTorController.java b/network/tor/src/main/java/bisq/tor/process/NativeTorController.java index 3f15313d67..b0126d7239 100644 --- a/network/tor/src/main/java/bisq/tor/process/NativeTorController.java +++ b/network/tor/src/main/java/bisq/tor/process/NativeTorController.java @@ -91,6 +91,15 @@ public TorControlConnection.CreateHiddenServiceResult createHiddenService( return result; } + public boolean isHiddenServiceAvailable(String onionUrl) { + try { + TorControlConnection controlConnection = torControlConnection.orElseThrow(); + return controlConnection.isHSAvailable(onionUrl); + } catch (IOException e) { + return false; + } + } + public void waitUntilBootstrapped() { try { boolean isSuccess = isBootstrappedCountdownLatch.await(2, TimeUnit.MINUTES);