File tree 2 files changed +7
-2
lines changed 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -108,7 +108,8 @@ Options:\n\
108
108
shall receive input via stdin and it must output the\n\
109
109
result to stdout\n\
110
110
-P file Create a pid file\n\
111
- -G file Create a pgid file\n"
111
+ -G file Create a pgid file\n\
112
+ -A address Set the globally advertised addres\n"
112
113
#ifdef UNIT_TESTS
113
114
" -T Fork, run unit tests and exit.\n"
114
115
#endif
Original file line number Diff line number Diff line change @@ -408,7 +408,7 @@ int main(int argc, char** argv)
408
408
/* process pkg mem size from command line */
409
409
opterr = 0 ;
410
410
411
- options = "f:cCm:M:b:l:n:N:rRvdDFEVhw:t:u:g:p:P:G:W:o:a:k:s:"
411
+ options = "A: f:cCm:M:b:l:n:N:rRvdDFEVhw:t:u:g:p:P:G:W:o:a:k:s:"
412
412
#ifdef UNIT_TESTS
413
413
"T:"
414
414
#endif
@@ -620,6 +620,10 @@ int main(int argc, char** argv)
620
620
if (add_arg_var (optarg ) < 0 )
621
621
LM_ERR ("cannot add option %s\n" , optarg );
622
622
break ;
623
+ case 'A' :
624
+ default_global_address -> s = optarg ;
625
+ default_global_address -> len = strlen (optarg );
626
+ break ;
623
627
#ifdef UNIT_TESTS
624
628
case 'T' :
625
629
LM_INFO ("running in testing framework mode, for '%s'\n" , optarg );
You can’t perform that action at this time.
0 commit comments