Default min-port to 1024 to avoid reserved ports.

This commit is contained in:
Simon Kelley
2018-01-29 22:49:27 +00:00
parent 486bcd5a7b
commit baf553db0c
5 changed files with 5 additions and 8 deletions

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);