Skip to content

Commit

Permalink
Fixed default value for server whitelist mode
Browse files Browse the repository at this point in the history
  • Loading branch information
gjedeer committed Jun 8, 2016
1 parent e9393fb commit e682a05
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions main.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ int use_shared_secret = 0;
char shared_secret[TOX_MAX_FRIEND_REQUEST_LENGTH];

/* Only let in a whitelisted client */
int server_whitelist_mode = 1;
int server_whitelist_mode = 0;
allowed_toxid *allowed_toxids = NULL;

int load_saved_toxid_in_client_mode = 0;
Expand Down Expand Up @@ -1125,6 +1125,7 @@ int main(int argc, char *argv[])
break;
case 'i':
/* Tox ID */
server_whitelist_mode = 1;
allowed_toxid_obj = (allowed_toxid *)calloc(sizeof(allowed_toxid), 1);
if(!allowed_toxid_obj)
{
Expand Down Expand Up @@ -1190,9 +1191,8 @@ int main(int argc, char *argv[])
min_log_level = L_INFO;
}

if(!client_mode && remote_tox_id)
if(!client_mode && server_whitelist_mode)
{
server_whitelist_mode = 1;
log_printf(L_INFO, "Server in ToxID whitelisting mode - only clients listed with -i can connect");
}

Expand Down

0 comments on commit e682a05

Please sign in to comment.