Skip to content

Commit

Permalink
fix build --disable-password-change
Browse files Browse the repository at this point in the history
  • Loading branch information
chipitsine committed Aug 23, 2016
1 parent 2398e32 commit f3aed46
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions openvpn_config.c
Original file line number Diff line number Diff line change
Expand Up @@ -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_port = htons(25340 + config);

#ifndef DISABLE_CHANGE_PASSWORD
if (CheckKeyFileWriteAccess (c))
c->flags |= ALLOW_CHANGE_PASSPHRASE;
#endif

/* Check if connection should be autostarted */
for (i = 0; i < MAX_CONFIGS && o.auto_connect[i]; ++i)
Expand Down

0 comments on commit f3aed46

Please sign in to comment.