From 0171c988b4f339cc8085248ec2cc9977bce1b95f Mon Sep 17 00:00:00 2001 From: Davide Beatrici Date: Thu, 7 Mar 2024 04:00:09 +0100 Subject: [PATCH] Socket: Add EHOSTUNREACH to osErrorToCode() The Windows counterpart (WSAEHOSTUNREACH) was already present. --- src/Socket.hpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Socket.hpp b/src/Socket.hpp index 87e358d..bfa6d05 100644 --- a/src/Socket.hpp +++ b/src/Socket.hpp @@ -93,6 +93,7 @@ class Socket { case EACCES: case ECONNREFUSED: return Code::Refuse; + case EHOSTUNREACH: case ENETUNREACH: return Code::Reach; case EADDRNOTAVAIL: