mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-01-31 07:12:17 +00:00
Log the IP being used to connect to IRC.
This commit is contained in:
parent
ff770a8d83
commit
1087d837e5
@ -91,6 +91,8 @@ public class IrcDiscovery implements PeerDiscovery {
|
|||||||
ArrayList<InetSocketAddress> addresses = new ArrayList<InetSocketAddress>();
|
ArrayList<InetSocketAddress> addresses = new ArrayList<InetSocketAddress>();
|
||||||
connection = null;
|
connection = null;
|
||||||
try {
|
try {
|
||||||
|
InetAddress ip = InetAddress.getByName("irc.lfnet.org");
|
||||||
|
log.info("Connecting to IRC with " + ip);
|
||||||
connection = new Socket(server, port);
|
connection = new Socket(server, port);
|
||||||
writer = new BufferedWriter(new OutputStreamWriter(connection.getOutputStream()));
|
writer = new BufferedWriter(new OutputStreamWriter(connection.getOutputStream()));
|
||||||
BufferedReader reader = new BufferedReader(new InputStreamReader(connection.getInputStream()));
|
BufferedReader reader = new BufferedReader(new InputStreamReader(connection.getInputStream()));
|
||||||
|
Loading…
Reference in New Issue
Block a user