diff --git a/openvpn_config.c b/openvpn_config.c index 03e8498..a7b05cd 100644 --- a/openvpn_config.c +++ b/openvpn_config.c @@ -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)