From: Andre Noll Date: Tue, 17 Mar 2020 11:43:55 +0000 (+0100) Subject: server: Add --dccp-no-autostart. X-Git-Tag: v0.6.3~11 X-Git-Url: http://git.tue.mpg.de/?a=commitdiff_plain;h=cb920d36d5fbd7888a2890a759d852f4b3089b3f;p=paraslash.git server: Add --dccp-no-autostart. We already have --http-no-autostart and --udp-no-autostart. Add the new option for consistency. --- diff --git a/dccp_send.c b/dccp_send.c index 55f189ad..bca7ad67 100644 --- a/dccp_send.c +++ b/dccp_send.c @@ -232,6 +232,8 @@ static void dccp_send_init(void) OPT_RESULT(DCCP_LISTEN_ADDRESS), OPT_UINT32_VAL(DCCP_PORT), OPT_UINT32_VAL(DCCP_MAX_CLIENTS), OPT_GIVEN(DCCP_DEFAULT_DENY)); + if (OPT_GIVEN(DCCP_NO_AUTOSTART)) + return; generic_com_on(dss, IPPROTO_DCCP); } diff --git a/m4/lls/server.suite.m4 b/m4/lls/server.suite.m4 index be8f02f5..93e4b573 100644 --- a/m4/lls/server.suite.m4 +++ b/m4/lls/server.suite.m4 @@ -273,6 +273,11 @@ version-string = GIT_VERSION() [help] See --http-access for details. [/help] + [option dccp-no-autostart] + summary = do not open the DCCP port on startup + [help] + This is like --http-no-autostart but applies to the dccp sender. + [/help] [option dccp-max-clients] summary = maximal number of simultaneous dccp connections arg_info = required_arg