Skip to content

Commit

Permalink
Merge pull request #3148 from Sda79/master
Browse files Browse the repository at this point in the history
#1923 - New option flag for global advertised address
  • Loading branch information
razvancrainea committed Nov 27, 2023
2 parents 737aafc + b579acb commit aabc817
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
3 changes: 2 additions & 1 deletion help_msg.h
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,8 @@ Options:\n\
shall receive input via stdin and it must output the\n\
result to stdout\n\
-P file Create a pid file\n\
-G file Create a pgid file\n"
-G file Create a pgid file\n\
-A address Set the globally advertised addres\n"
#ifdef UNIT_TESTS
" -T Fork, run unit tests and exit.\n"
#endif
Expand Down
6 changes: 5 additions & 1 deletion main.c
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ int main(int argc, char** argv)
/* process pkg mem size from command line */
opterr=0;

options="f:cCm:M:b:l:n:N:rRvdDFEVhw:t:u:g:p:P:G:W:o:a:k:s:"
options="A:f:cCm:M:b:l:n:N:rRvdDFEVhw:t:u:g:p:P:G:W:o:a:k:s:"
#ifdef UNIT_TESTS
"T:"
#endif
Expand Down Expand Up @@ -620,6 +620,10 @@ int main(int argc, char** argv)
if (add_arg_var(optarg) < 0)
LM_ERR("cannot add option %s\n", optarg);
break;
case 'A':
default_global_address->s = optarg;
default_global_address->len = strlen(optarg);
break;
#ifdef UNIT_TESTS
case 'T':
LM_INFO("running in testing framework mode, for '%s'\n", optarg);
Expand Down

0 comments on commit aabc817

Please sign in to comment.