1
1
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:
Tae Won Ha 2017-04-14 08:25:08 +02:00
parent 0185372a13
commit 34bcc0f537
No known key found for this signature in database
GPG Key ID: E40743465B5B8B44

View File

@ -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) {