mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2026-08-20 14:57:55 +00:00
fix issue with windows getnameinfo()
This commit is contained in:
committed by
GitHub
parent
050a4362ad
commit
1d34ed696b
Vendored
+1
-1
@@ -1545,7 +1545,7 @@ inline std::string get_remote_addr(socket_t sock) {
|
||||
std::array<char, NI_MAXHOST> ipstr{};
|
||||
|
||||
if (!getnameinfo(reinterpret_cast<struct sockaddr *>(&addr), len,
|
||||
ipstr.data(), ipstr.size(), nullptr, 0, NI_NUMERICHOST)) {
|
||||
ipstr.data(), static_cast<unsigned int>(ipstr.size()), nullptr, 0, NI_NUMERICHOST)) {
|
||||
return ipstr.data();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user