From 682033aef6d20a9c223267af2de6c8f0fcb606fc Mon Sep 17 00:00:00 2001 From: Mike Hearn Date: Fri, 11 Jan 2013 21:58:45 +0100 Subject: [PATCH] Actually use the provided IRC server name in IrcDiscovery. Resolves issue 266. --- .../main/java/com/google/bitcoin/discovery/IrcDiscovery.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 dd5c8ab7..114896e9 100644 --- a/core/src/main/java/com/google/bitcoin/discovery/IrcDiscovery.java +++ b/core/src/main/java/com/google/bitcoin/discovery/IrcDiscovery.java @@ -93,7 +93,7 @@ public class IrcDiscovery implements PeerDiscovery { ArrayList addresses = new ArrayList(); connection = null; try { - InetAddress ip = InetAddress.getByName("irc.lfnet.org"); + InetAddress ip = InetAddress.getByName(server); log.info("Connecting to IRC with " + ip); connection = new Socket(server, port); writer = new BufferedWriter(new OutputStreamWriter(connection.getOutputStream(), "UTF-8"));