Log the IP being used to connect to IRC.

This commit is contained in:
Mike Hearn 2012-05-02 17:17:55 +02:00
parent ff770a8d83
commit 1087d837e5

View File

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