when using systemd socket activation the tcp-port option is optional.

Moreover the UDP and TCP ports are "discovered" from the provided file
descriptors.
This commit is contained in:
Nikos Mavrogiannopoulos
2014-01-06 13:10:04 +01:00
parent 1d697285e8
commit fdaeb60846
2 changed files with 40 additions and 20 deletions
+1 -1
View File
@@ -50,7 +50,7 @@ static struct cfg_options available_options[] = {
{ .name = "auth", .type = OPTION_MULTI_LINE, .mandatory = 1 },
{ .name = "route", .type = OPTION_MULTI_LINE, .mandatory = 0 },
{ .name = "listen-host", .type = OPTION_STRING, .mandatory = 0 },
{ .name = "tcp-port", .type = OPTION_NUMERIC, .mandatory = 1 },
{ .name = "tcp-port", .type = OPTION_NUMERIC, .mandatory = 0 },
{ .name = "udp-port", .type = OPTION_NUMERIC, .mandatory = 0 },
{ .name = "keepalive", .type = OPTION_NUMERIC, .mandatory = 0 },
{ .name = "dpd", .type = OPTION_NUMERIC, .mandatory = 0 },