Browse Source

SO_REUSEPORT is not supported everywhere

master
Brett Langdon 13 years ago
parent
commit
ad95ee346b
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/main.c

+ 1
- 1
src/main.c View File

@ -201,7 +201,7 @@ int main(int argc, char* argv[]){
}
yes = 1;
setsockopt(server,SOL_SOCKET,(SO_REUSEPORT | SO_REUSEADDR), &yes, sizeof(yes));
setsockopt(server, SOL_SOCKET, SO_REUSEADDR, &yes, sizeof(yes));
if(listen(server, 24) < 0){
perror("Error binding socket");
return -1;


Loading…
Cancel
Save