1
0
mirror of synced 2025-07-17 17:40:57 +03:00

Remove incorrect comment

This commit is contained in:
yhirose
2025-07-08 23:53:52 -04:00
parent 9dbaed75ef
commit 802743264c

View File

@ -4084,7 +4084,7 @@ inline void get_remote_ip_and_port(socket_t sock, std::string &ip, int &port) {
if (getsockopt(sock, SOL_SOCKET, SO_PEERCRED, &ucred, &len) == 0) {
port = ucred.pid;
}
#elif defined(SOL_LOCAL) && defined(SO_PEERPID) // __APPLE__
#elif defined(SOL_LOCAL) && defined(SO_PEERPID)
pid_t pid;
socklen_t len = sizeof(pid);
if (getsockopt(sock, SOL_LOCAL, SO_PEERPID, &pid, &len) == 0) {