forked from lda/telodendria
Fix port binding error.
This commit is contained in:
parent
8801afaeb2
commit
665da9d33e
1 changed files with 1 additions and 1 deletions
|
@ -130,7 +130,7 @@ HttpServerCreate(unsigned short port, unsigned int nThreads, unsigned int maxCon
|
||||||
}
|
}
|
||||||
|
|
||||||
sa.sin_family = AF_INET;
|
sa.sin_family = AF_INET;
|
||||||
sa.sin_port = port;
|
sa.sin_port = htons(port);
|
||||||
sa.sin_addr.s_addr = htonl(INADDR_ANY);
|
sa.sin_addr.s_addr = htonl(INADDR_ANY);
|
||||||
|
|
||||||
if (bind(server->sd, (struct sockaddr *) & sa, sizeof(sa)) < 0)
|
if (bind(server->sd, (struct sockaddr *) & sa, sizeof(sa)) < 0)
|
||||||
|
|
Loading…
Reference in a new issue