diff --git a/p2p/src/main/java/bisq/network/p2p/network/NewTor.java b/p2p/src/main/java/bisq/network/p2p/network/NewTor.java index 7cd6589cc8..64a4c65cfe 100644 --- a/p2p/src/main/java/bisq/network/p2p/network/NewTor.java +++ b/p2p/src/main/java/bisq/network/p2p/network/NewTor.java @@ -17,20 +17,21 @@ package bisq.network.p2p.network; +import org.berndpruenster.netlayer.tor.NativeTor; +import org.berndpruenster.netlayer.tor.Tor; +import org.berndpruenster.netlayer.tor.TorCtlException; +import org.berndpruenster.netlayer.tor.Torrc; + import java.io.File; import java.io.FileInputStream; import java.io.IOException; + import java.util.Arrays; import java.util.Collection; import java.util.Date; import java.util.LinkedHashMap; import java.util.stream.Collectors; -import org.berndpruenster.netlayer.tor.NativeTor; -import org.berndpruenster.netlayer.tor.Tor; -import org.berndpruenster.netlayer.tor.TorCtlException; -import org.berndpruenster.netlayer.tor.Torrc; - import lombok.extern.slf4j.Slf4j; import javax.annotation.Nullable; @@ -65,7 +66,7 @@ public class NewTor extends TorMode { long ts1 = new Date().getTime(); Collection bridgeEntries = bridgeAddressProvider.getBridgeAddresses(); - if (bridgeEntries != null) + if (bridgeEntries != null && !bridgeEntries.isEmpty()) log.info("Using bridges: {}", bridgeEntries.stream().collect(Collectors.joining(","))); Torrc override = null;