mirror of
https://github.com/rtlsdrblog/rtl-sdr-blog.git
synced 2024-12-28 11:58:30 +01:00
fix rtl_tcp on macos
This commit is contained in:
parent
c79775f4b6
commit
41ca7ff956
@ -571,7 +571,7 @@ int main(int argc, char **argv)
|
||||
setsockopt(listensocket, SOL_SOCKET, SO_REUSEADDR, (char *)&r, sizeof(int));
|
||||
setsockopt(listensocket, SOL_SOCKET, SO_LINGER, (char *)&ling, sizeof(ling));
|
||||
|
||||
if (bind(listensocket, (struct sockaddr *)&local, sizeof(local)))
|
||||
if (bind(listensocket, (struct sockaddr *)&local, aiHead->ai_addrlen))
|
||||
fprintf(stderr, "rtl_tcp bind error: %s", strerror(errno));
|
||||
else
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user