3
0
mirror of https://github.com/Qortal/altcoinj.git synced 2025-01-30 23:02:15 +00:00

Actually use the provided IRC server name in IrcDiscovery. Resolves issue 266.

This commit is contained in:
Mike Hearn 2013-01-11 21:58:45 +01:00
parent 93870110c3
commit 682033aef6

View File

@ -93,7 +93,7 @@ public class IrcDiscovery implements PeerDiscovery {
ArrayList<InetSocketAddress> addresses = new ArrayList<InetSocketAddress>();
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"));