mirror of
https://github.com/brunodev85/winlator.git
synced 2026-10-22 22:12:11 +03:00
Merge pull request #49 from ricnava00/patch-1
Add fallback for local socket address
This commit is contained in:
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();
|
||||
|
||||
Reference in new issue
Block a user