Skip to content

Commit

Permalink
Merge pull request #4373 from QuantumRipple/local-node-ip
Browse files Browse the repository at this point in the history
Change IP for local node connection to Loopback address
  • Loading branch information
ripcurlx authored Jul 29, 2020
2 parents 88fcb3f + a5cca0e commit d9eb1d8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ private boolean isDetected() {
*/
private static boolean detect(int port) {
try (Socket socket = new Socket()) {
var address = new InetSocketAddress(InetAddress.getLocalHost(), port);
var address = new InetSocketAddress(InetAddress.getLoopbackAddress(), port);
socket.connect(address, CONNECTION_TIMEOUT);
log.info("Local Bitcoin node detected on port {}", port);
return true;
Expand Down

0 comments on commit d9eb1d8

Please sign in to comment.