From: David ‘Bombe’ Roden Date: Tue, 13 Jan 2015 21:09:29 +0000 (+0100) Subject: Log connection attempts. X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=fd78c0b99be170906ab7954ccd59916566803c57;p=xudocci.git Log connection attempts. --- diff --git a/src/main/java/net/pterodactylus/xdcc/core/Core.java b/src/main/java/net/pterodactylus/xdcc/core/Core.java index 0db311c..e24fa2f 100644 --- a/src/main/java/net/pterodactylus/xdcc/core/Core.java +++ b/src/main/java/net/pterodactylus/xdcc/core/Core.java @@ -478,6 +478,7 @@ public class Core extends AbstractExecutionThreadService { return; } Server server = servers.get((int) (Math.random() * servers.size())); + eventBus.post(new GenericMessage(String.format("Connecting to %s on %s...", network.name(), server.hostname()))); Connection connection = connectionFactory.createConnection(server.hostname(), server.unencryptedPorts().iterator().next()); connection.username(RandomNickname.get()).realName(RandomNickname.get());