mirror of
https://github.com/qvacua/vimr.git
synced 2024-10-27 10:23:12 +03:00
GH-425 Remove unnec' INADDR_ANY when determining an open port
This commit is contained in:
parent
0185372a13
commit
34bcc0f537
@ -25,7 +25,6 @@
|
||||
sin.sin_len = sizeof(sin);
|
||||
sin.sin_family = AF_INET;
|
||||
sin.sin_port = htons(0);
|
||||
sin.sin_addr.s_addr= INADDR_ANY;
|
||||
|
||||
if (bind(sock, (struct sockaddr *) &sin, sizeof(sin)) < 0) {
|
||||
if(errno == EADDRINUSE) {
|
||||
|
Loading…
Reference in New Issue
Block a user