Listen all
This commit is contained in:
parent
1aa9236240
commit
90671b80ba
1 changed files with 1 additions and 1 deletions
|
@ -45,7 +45,7 @@ int create_tcp_server(char* service) {
|
|||
memset(&conf, 0, sizeof(struct addrinfo));
|
||||
conf.ai_family = AF_UNSPEC;
|
||||
conf.ai_socktype = SOCK_STREAM;
|
||||
conf.ai_flags = 0;
|
||||
conf.ai_flags = AI_PASSIVE;
|
||||
conf.ai_protocol = 0;
|
||||
|
||||
err = getaddrinfo(NULL, service, &conf, &result);
|
||||
|
|
Loading…
Reference in a new issue