]> git.tuebingen.mpg.de Git - paraslash.git/commitdiff
server: Add --dccp-no-autostart.
authorAndre Noll <maan@tuebingen.mpg.de>
Tue, 17 Mar 2020 11:43:55 +0000 (12:43 +0100)
committerAndre Noll <maan@tuebingen.mpg.de>
Thu, 17 Sep 2020 15:43:02 +0000 (17:43 +0200)
We already have --http-no-autostart and --udp-no-autostart. Add the
new option for consistency.

dccp_send.c
m4/lls/server.suite.m4

index 55f189ad4eb01632dbcd653e104ef7f0cfe54ff8..bca7ad6781e29d2bb1bea686d3971e02ede59909 100644 (file)
@@ -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);
 }
 
index be8f02f5fa4bda5101f0b2ffa67f5e4332ec0b64..93e4b573e5ae694581b5f111f1a898d45b6c4f7b 100644 (file)
@@ -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