Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Print turnserver version with --version #973

Merged
merged 2 commits into from
Sep 7, 2022
Merged

Conversation

eakraly
Copy link
Collaborator

@eakraly eakraly commented Sep 7, 2022

Print number version of the build

$ turnserver --version
4.5.2

Closes #843

@eakraly eakraly requested a review from ggarber September 7, 2022 02:23
@@ -999,6 +1001,7 @@ static const struct myoption long_options[] = {
{ "no-rfc5780", optional_argument, NULL, NO_RFC5780 },
{ "no-stun-backward-compatibility", optional_argument, NULL, NO_STUN_BACKWARD_COMPATIBILITY_OPT },
{ "response-origin-only-with-rfc5780", optional_argument, NULL, RESPONSE_ORIGIN_ONLY_WITH_RFC5780_OPT },
{ "version", optional_argument, NULL, VERSION_OPT },
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is needed so that getopt_long does not complain about unknown option

@ggarber ggarber merged commit 83bd4e2 into coturn:master Sep 7, 2022
@eakraly eakraly deleted the version branch September 7, 2022 19:09
KangLin added a commit to KangLin/coturn that referenced this pull request Oct 27, 2023
- The configuration file and log parameters in the command line must be processed first
- Refactor process config file function
- Modify --version(coturn#973) from TURN_SERVER_VERSION to TURN_SOFTWARE
- Remove exit
KangLin added a commit to KangLin/coturn that referenced this pull request Oct 27, 2023
- The configuration file and log parameters in the command line must be processed first
- Refactor find_config_file
- Refactor read_config_file
- Modify --version(coturn#973) from TURN_SERVER_VERSION to TURN_SOFTWARE
- Remove exit
KangLin added a commit to KangLin/coturn that referenced this pull request Oct 27, 2023
- The configuration file and log parameters in the command line must be processed first
- Refactor find_config_file
- Refactor read_config_file
- Modify --version(coturn#973) from TURN_SERVER_VERSION to TURN_SOFTWARE
- Remove exit
KangLin added a commit to KangLin/coturn that referenced this pull request Oct 27, 2023
- The configuration file and log parameters in the command line must be processed first
- Refactor find_config_file
- Refactor read_config_file
- Modify --version(coturn#973) from TURN_SERVER_VERSION to TURN_SOFTWARE
- Remove exit
KangLin added a commit to KangLin/coturn that referenced this pull request Oct 27, 2023
- The configuration file and log parameters in the command line must be processed first
- Refactor find_config_file
- Refactor read_config_file
- Modify --version(coturn#973) from TURN_SERVER_VERSION to TURN_SOFTWARE
- Remove exit
KangLin added a commit to KangLin/coturn that referenced this pull request Oct 27, 2023
- The configuration file and log parameters in the command line must be processed first
- Refactor find_config_file
- Refactor read_config_file
- Modify --version(coturn#973) from TURN_SERVER_VERSION to TURN_SOFTWARE
- Remove exit
KangLin added a commit to KangLin/coturn that referenced this pull request Oct 27, 2023
- The configuration file and log parameters in the command line must be processed first
- Refactor find_config_file
- Refactor read_config_file
- Modify --version(coturn#973) from TURN_SERVER_VERSION to TURN_SOFTWARE
- Remove exit
KangLin added a commit to KangLin/coturn that referenced this pull request Oct 29, 2023
- The configuration file and log parameters in the command line must be processed first
- Refactor find_config_file
- Refactor read_config_file
- Modify --version(coturn#973) from TURN_SERVER_VERSION to TURN_SOFTWARE
- Remove exit
KangLin added a commit to KangLin/coturn that referenced this pull request Nov 3, 2023
- The configuration file and log parameters in the command line must be processed first
- Refactor find_config_file
- Refactor read_config_file
- Modify --version(coturn#973) from TURN_SERVER_VERSION to TURN_SOFTWARE
- Remove exit
KangLin added a commit to KangLin/coturn that referenced this pull request Nov 3, 2023
- The configuration file and log parameters in the command line must be processed first
- Refactor find_config_file
- Refactor read_config_file
- Modify --version(coturn#973) from TURN_SERVER_VERSION to TURN_SOFTWARE
- Remove exit
KangLin added a commit to KangLin/coturn that referenced this pull request Nov 10, 2023
- The configuration file and log parameters in the command line must be processed first
- Refactor find_config_file
- Refactor read_config_file
- Modify --version(coturn#973) from TURN_SERVER_VERSION to TURN_SOFTWARE
- Remove exit
KangLin added a commit to KangLin/coturn that referenced this pull request Nov 15, 2023
- The configuration file and log parameters in the command line must be processed first
- Refactor find_config_file
- Refactor read_config_file
- Modify --version(coturn#973) from TURN_SERVER_VERSION to TURN_SOFTWARE
- Remove exit
KangLin added a commit to KangLin/coturn that referenced this pull request Nov 17, 2023
- The configuration file and log parameters in the command line must be processed first
- Refactor find_config_file
- Refactor read_config_file
- Modify --version(coturn#973) from TURN_SERVER_VERSION to TURN_SOFTWARE
- Remove exit
KangLin added a commit to KangLin/coturn that referenced this pull request Nov 23, 2023
- The configuration file and log parameters in the command line must be processed first
- Refactor find_config_file
- Refactor read_config_file
- Modify --version(coturn#973) from TURN_SERVER_VERSION to TURN_SOFTWARE
- Remove exit
KangLin added a commit to KangLin/coturn that referenced this pull request Nov 27, 2023
- The configuration file and log parameters in the command line must be processed first
- Refactor find_config_file
- Refactor read_config_file
- Modify --version(coturn#973) from TURN_SERVER_VERSION to TURN_SOFTWARE
- Remove exit()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Version
2 participants