Merge pull request #49 from ricnava00/patch-1

Add fallback for local socket address
This commit is contained in:
BrunoSX authored and GitHub committed 2024-01-27 16:18:00 -03:00
commit ed046b4113
1 file changed
+5 -1
@@ -254,7 +254,11 @@ public class WinHandler {
try {
localhost = InetAddress.getLocalHost();
}
catch (UnknownHostException e) {}
catch (UnknownHostException e) {
try {
localhost = InetAddress.getByName("127.0.0.1");
} catch (UnknownHostException ex) {}
}
running = true;
startSendThread();