diff --git a/openvpn.c b/openvpn.c index ec636f5..6671434 100644 --- a/openvpn.c +++ b/openvpn.c @@ -191,7 +191,7 @@ OnStateChange(connection_t *c, char *data) return; *pos = '\0'; - if (strcmp(state, "CONNECTED") == 0) + if (strcmp(state, "CONNECTED") == 0 && strcmp(message, "SUCCESS") == 0) { /* Run Connect Script */ if (c->state == connecting || c->state == resuming)