mirror of
https://forge.fsky.io/lda/Parsee.git
synced 2026-03-13 15:05:11 +00:00
[MOD] Listen to localhost by default
This commit is contained in:
parent
8092be4fdb
commit
8edd929c45
1 changed files with 10 additions and 1 deletions
|
|
@ -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':
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue