Skip to content

Commit

Permalink
Merge pull request brunodev85#49 from ricnava00/patch-1
Browse files Browse the repository at this point in the history
Add fallback for local socket address
  • Loading branch information
brunodev85 authored Jan 27, 2024
2 parents e6dd7a5 + 6f552dd commit ed046b4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/src/main/java/com/winlator/winhandler/WinHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,11 @@ public void start() {
try {
localhost = InetAddress.getLocalHost();
}
catch (UnknownHostException e) {}
catch (UnknownHostException e) {
try {
localhost = InetAddress.getByName("127.0.0.1");
} catch (UnknownHostException ex) {}
}

running = true;
startSendThread();
Expand Down

0 comments on commit ed046b4

Please sign in to comment.