Fix hostname resolution problems under Windows
On Windows, the WSA system needs to be initialized to be able to look up host names. This patch also changes *addr = 0 to use the constant INADDR_LOOPBACK instead, which seems to be required on Windows.
Showing
Please
register
or
sign in
to comment