Print local address to debug on start.

jda-v5
Nekojimi 2 years ago
parent 0c29d56317
commit 1dba55620f
  1. 1
      src/main/java/moe/nekojimi/chords/Chords.java

@ -108,6 +108,7 @@ public final class Chords extends ListenerAdapter
if (settings.getLocalAddr() != null) if (settings.getLocalAddr() != null)
{ {
System.out.println("Using local address: " + settings.getLocalAddr());
// make local binding socket factory // make local binding socket factory
final LocalBindSocketFactory localBindSocketFactory = new LocalBindSocketFactory(); final LocalBindSocketFactory localBindSocketFactory = new LocalBindSocketFactory();
localBindSocketFactory.setLocalAddress(InetAddress.getByName(settings.getLocalAddr())); localBindSocketFactory.setLocalAddress(InetAddress.getByName(settings.getLocalAddr()));

Loading…
Cancel
Save