Permalink
Browse files

Allow port to be 0 in configuration, in order to allow disabling of TCP.

  • Loading branch information...
1 parent 7377aac commit 1afef16d88aa7b48e80e8237d36ddab13ff072f8 @giddie giddie committed with Feb 22, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/config.c
View
@@ -66,7 +66,7 @@ void loadServerConfig(char *filename) {
}
} else if (!strcasecmp(argv[0],"port") && argc == 2) {
server.port = atoi(argv[1]);
- if (server.port < 1 || server.port > 65535) {
+ if (server.port < 0 || server.port > 65535) {
err = "Invalid port"; goto loaderr;
}
} else if (!strcasecmp(argv[0],"bind") && argc == 2) {

0 comments on commit 1afef16

Please sign in to comment.