From 4566bece900ce4305ca4eeb56e6bf5b88c65640d Mon Sep 17 00:00:00 2001 From: James Turner Date: Fri, 16 Sep 2011 16:43:09 +0100 Subject: [PATCH] Alternate, WinSock friendly reporting for host lookup failures. --- simgear/io/sg_netChannel.cxx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/simgear/io/sg_netChannel.cxx b/simgear/io/sg_netChannel.cxx index 463f24f9..a189f681 100644 --- a/simgear/io/sg_netChannel.cxx +++ b/simgear/io/sg_netChannel.cxx @@ -210,9 +210,8 @@ NetChannel::handleResolve() } if (!addr.isValid()) { - // I'm absuing ENETUNREACH, all we do is pass this to strerror - // in handleError - handleError (ENETUNREACH); + SG_LOG(SG_IO, SG_WARN, "Network: host lookup failed:" << host); + handleError (0); close(); return -1; } -- 2.39.5