Skip to content

Commit

Permalink
Print version only, no extra lines (coturn#1441)
Browse files Browse the repository at this point in the history
Before
<img width="615" alt="Screenshot 2024-03-02 at 2 47 48 PM"
src="https://github.com/coturn/coturn/assets/2505440/c3f01e97-914c-4391-af32-d3442d265e90">

After
<img width="402" alt="Screenshot 2024-03-02 at 2 47 28 PM"
src="https://github.com/coturn/coturn/assets/2505440/ce3deb7b-5f70-4158-8cd9-eceae0dcc995">
  • Loading branch information
eakraly committed Mar 31, 2024
1 parent 9a79c81 commit edebb9a
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions src/apps/relay/mainrelay.c
Original file line number Diff line number Diff line change
Expand Up @@ -3003,6 +3003,15 @@ int main(int argc, char **argv) {
turn_params.no_dtls = 1;
#endif

if (strstr(argv[0], "turnadmin")) {
return adminmain(argc, argv);
}

// Zero pass apply the log options.
read_config_file(argc, argv, 0);
// First pass read other config options
read_config_file(argc, argv, 1);

{
int cpus = get_system_number_of_cpus();
if (0 < cpus) {
Expand All @@ -3023,14 +3032,6 @@ int main(int argc, char **argv) {
memset(&turn_params.default_users_db, 0, sizeof(default_users_db_t));
turn_params.default_users_db.ram_db.static_accounts = ur_string_map_create(free);

if (strstr(argv[0], "turnadmin")) {
return adminmain(argc, argv);
}
// Zero pass apply the log options.
read_config_file(argc, argv, 0);
// First pass read other config options
read_config_file(argc, argv, 1);

struct uoptions uo;
uo.u.m = long_options;

Expand Down

0 comments on commit edebb9a

Please sign in to comment.