From 3e79d970e8180e16074e90b83382908db42c52ad Mon Sep 17 00:00:00 2001 From: max90T Date: Thu, 29 Oct 2026 15:07:42 +0100 Subject: [PATCH] Fix macOS local network access --- libs/network/include/s25util/Socket.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/network/include/s25util/Socket.h b/libs/network/include/s25util/Socket.h index f1fb71b..a23373a 100644 --- a/libs/network/include/s25util/Socket.h +++ b/libs/network/include/s25util/Socket.h @@ -78,7 +78,7 @@ class PeerAddr std::string GetIp() const; sockaddr* GetAddr(); const sockaddr* GetAddr() const; - int GetSize() const { return sizeof(addr); } + int GetSize() const { return sizeof(addr.sa_in); } }; /// Socket-Wrapper-Klasse für portable TCP/IP-Verbindungen