diff --git a/TellusAgent.c b/TellusAgent.c index 5665b0e..4e53989 100644 --- a/TellusAgent.c +++ b/TellusAgent.c @@ -517,7 +517,7 @@ int main(int argc, const char* argv[]) struct sockaddr_in* address = repeaterSocketAddresses + selection; // Move to additional buffer to keep initial value - address += PROXY_PORT_COUNT * (address->si_family != AF_UNSPEC); + address += PROXY_PORT_COUNT * (address->sin_family != AF_UNSPEC); size_t length = recvfrom(handle, buffer, BUFFER_SIZE, 0, (struct sockaddr*)address, &size);