From 1087d837e5427edabf5707de333eff55945c2e67 Mon Sep 17 00:00:00 2001 From: Mike Hearn Date: Wed, 2 May 2012 17:17:55 +0200 Subject: [PATCH] Log the IP being used to connect to IRC. --- .../main/java/com/google/bitcoin/discovery/IrcDiscovery.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/src/main/java/com/google/bitcoin/discovery/IrcDiscovery.java b/core/src/main/java/com/google/bitcoin/discovery/IrcDiscovery.java index 1513e7a44..46a7e2599 100644 --- a/core/src/main/java/com/google/bitcoin/discovery/IrcDiscovery.java +++ b/core/src/main/java/com/google/bitcoin/discovery/IrcDiscovery.java @@ -91,6 +91,8 @@ public class IrcDiscovery implements PeerDiscovery { ArrayList addresses = new ArrayList(); connection = null; try { + InetAddress ip = InetAddress.getByName("irc.lfnet.org"); + log.info("Connecting to IRC with " + ip); connection = new Socket(server, port); writer = new BufferedWriter(new OutputStreamWriter(connection.getOutputStream())); BufferedReader reader = new BufferedReader(new InputStreamReader(connection.getInputStream()));