summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2015-07-07 18:10:47 +0200
committerMattes D <github@xoft.cz>2015-07-07 18:10:47 +0200
commita55eaba7fab0f2d337029b929a5601a57e505f07 (patch)
tree85918b45f2f329780959f6b65aedd182f061aacd
parent(Ender) Chests are obstructed by opaque blocks. (diff)
downloadcuberite-a55eaba7fab0f2d337029b929a5601a57e505f07.tar
cuberite-a55eaba7fab0f2d337029b929a5601a57e505f07.tar.gz
cuberite-a55eaba7fab0f2d337029b929a5601a57e505f07.tar.bz2
cuberite-a55eaba7fab0f2d337029b929a5601a57e505f07.tar.lz
cuberite-a55eaba7fab0f2d337029b929a5601a57e505f07.tar.xz
cuberite-a55eaba7fab0f2d337029b929a5601a57e505f07.tar.zst
cuberite-a55eaba7fab0f2d337029b929a5601a57e505f07.zip
Diffstat (limited to '')
-rw-r--r--src/OSSupport/ServerHandleImpl.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/OSSupport/ServerHandleImpl.cpp b/src/OSSupport/ServerHandleImpl.cpp
index 44ace448b..6f0a1ee16 100644
--- a/src/OSSupport/ServerHandleImpl.cpp
+++ b/src/OSSupport/ServerHandleImpl.cpp
@@ -294,14 +294,14 @@ void cServerHandleImpl::Callback(evconnlistener * a_Listener, evutil_socket_t a_
case AF_INET:
{
sockaddr_in * sin = reinterpret_cast<sockaddr_in *>(a_Addr);
- evutil_inet_ntop(AF_INET, sin, IPAddress, ARRAYCOUNT(IPAddress));
+ evutil_inet_ntop(AF_INET, &(sin->sin_addr), IPAddress, ARRAYCOUNT(IPAddress));
Port = ntohs(sin->sin_port);
break;
}
case AF_INET6:
{
sockaddr_in6 * sin6 = reinterpret_cast<sockaddr_in6 *>(a_Addr);
- evutil_inet_ntop(AF_INET, sin6, IPAddress, ARRAYCOUNT(IPAddress));
+ evutil_inet_ntop(AF_INET6, &(sin6->sin6_addr), IPAddress, ARRAYCOUNT(IPAddress));
Port = ntohs(sin6->sin6_port);
break;
}