Merge pull request #69 from chipitsine/master

fix build --disable-password-change
pull/72/head
Selva Nair 2016-08-23 15:38:10 -04:00 committed by GitHub
commit c3099acc59
1 changed files with 2 additions and 0 deletions

View File

@ -105,8 +105,10 @@ AddConfigFileToList(int config, const TCHAR *filename, const TCHAR *config_dir)
c->manage.skaddr.sin_addr.s_addr = inet_addr("127.0.0.1"); c->manage.skaddr.sin_addr.s_addr = inet_addr("127.0.0.1");
c->manage.skaddr.sin_port = htons(25340 + config); c->manage.skaddr.sin_port = htons(25340 + config);
#ifndef DISABLE_CHANGE_PASSWORD
if (CheckKeyFileWriteAccess (c)) if (CheckKeyFileWriteAccess (c))
c->flags |= ALLOW_CHANGE_PASSPHRASE; c->flags |= ALLOW_CHANGE_PASSPHRASE;
#endif
/* Check if connection should be autostarted */ /* Check if connection should be autostarted */
for (i = 0; i < MAX_CONFIGS && o.auto_connect[i]; ++i) for (i = 0; i < MAX_CONFIGS && o.auto_connect[i]; ++i)