Skip to content

Commit

Permalink
Socket: Add EHOSTUNREACH to osErrorToCode()
Browse files Browse the repository at this point in the history
The Windows counterpart (WSAEHOSTUNREACH) was already present.
  • Loading branch information
davidebeatrici committed Mar 7, 2024
1 parent 0031b81 commit 0171c98
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Socket.hpp
Expand Up @@ -93,6 +93,7 @@ class Socket {
case EACCES:
case ECONNREFUSED:
return Code::Refuse;
case EHOSTUNREACH:
case ENETUNREACH:
return Code::Reach;
case EADDRNOTAVAIL:
Expand Down

0 comments on commit 0171c98

Please sign in to comment.