Default min-port to 1024 to avoid reserved ports.

This commit is contained in:
Simon Kelley committed 2018-01-29 23:04:06 +00:00
1 parent 486bcd5a7b
commit baf553db0c
5 files changed
+5 -8

No files matched your search

-3
View File
@@ -224,9 +224,6 @@ int main (int argc, char **argv)
die(_("loop detection not available: set HAVE_LOOP in src/config.h"), NULL, EC_BADCONF);
#endif
if (daemon->max_port != MAX_PORT && daemon->min_port == 0)
daemon->min_port = 1024u;
if (daemon->max_port < daemon->min_port)
die(_("max_port cannot be smaller than min_port"), NULL, EC_BADCONF);