From 8edd929c456d28ff6a7a1af509615a486fae317e Mon Sep 17 00:00:00 2001 From: LDA Date: Sun, 28 Jul 2024 15:21:38 +0200 Subject: [PATCH] [MOD] Listen to localhost by default --- tools/config.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/tools/config.c b/tools/config.c index 6f67e79..252434d 100644 --- a/tools/config.c +++ b/tools/config.c @@ -1,5 +1,12 @@ /* config.c - Generates a nice Parsee config file * ============================================================ + * Example of usage(for a blow.hole HS and a xmpp.blow.hole JCP): + * tools/out/config \ + * -d '/var/lib/parsee' \ + * -m 'https://pmedia.blow.hole' \ + * -H 'blow.hole' \ + * -s 'The Dark Blowhole shared secret' \ + * -J 'xmpp.blow.hole' * Under CC0, as its a rather useful example of a Parsee tool. * See LICENSE for more information about Parsee's licensing. */ @@ -82,6 +89,8 @@ Main(Array *args, HashMap *env) int flag, code = EXIT_FAILURE; int port = 5347; + listen = "localhost"; + ArgParseStateInit(&state); while ((flag = ArgParse(&state, args, "H:J:s:d:p:m:l:")) != -1) { @@ -94,7 +103,7 @@ Main(Array *args, HashMap *env) jcp = state.optArg; break; case 'm': - Free(listen); + Free(media); media = StrDuplicate(state.optArg); break; case 'J':