mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-02-07 06:44:16 +00:00
Actually use the provided IRC server name in IrcDiscovery. Resolves issue 266.
This commit is contained in:
parent
93870110c3
commit
682033aef6
@ -93,7 +93,7 @@ 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");
|
InetAddress ip = InetAddress.getByName(server);
|
||||||
log.info("Connecting to IRC with " + ip);
|
log.info("Connecting to IRC with " + ip);
|
||||||
connection = new Socket(server, port);
|
connection = new Socket(server, port);
|
||||||
writer = new BufferedWriter(new OutputStreamWriter(connection.getOutputStream(), "UTF-8"));
|
writer = new BufferedWriter(new OutputStreamWriter(connection.getOutputStream(), "UTF-8"));
|
||||||
|
Loading…
Reference in New Issue
Block a user