Brian Clinkenbeard
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
externals/httplib/httplib.h
|
|
@ -1545,7 +1545,7 @@ inline std::string get_remote_addr(socket_t sock) { |
|
|
std::array<char, NI_MAXHOST> ipstr{}; |
|
|
std::array<char, NI_MAXHOST> ipstr{}; |
|
|
|
|
|
|
|
|
if (!getnameinfo(reinterpret_cast<struct sockaddr *>(&addr), len, |
|
|
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(); |
|
|
return ipstr.data(); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|