summaryrefslogtreecommitdiff
path: root/plugins/vpnc.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/vpnc.c')
-rw-r--r--plugins/vpnc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/vpnc.c b/plugins/vpnc.c
index fea1c15c..6b7a02be 100644
--- a/plugins/vpnc.c
+++ b/plugins/vpnc.c
@@ -194,7 +194,9 @@ static ssize_t write_bool_option(int fd, const char *key, const char *value)
ssize_t ret = 0;
if (key != NULL && value != NULL) {
- if (strcmp(value, "yes") == 0) {
+ if (strcasecmp(value, "yes") == 0 ||
+ strcasecmp(value, "true") == 0 ||
+ strcmp(value, "1") == 0) {
buf = g_strdup_printf("%s\n", key);
ret = full_write(fd, buf, strlen(buf));