Permalink
Browse files

bfg tought me some stuff. now it should work.

  • Loading branch information...
1 parent 67bd20c commit 66e2ae16f75dbb09dc619341a7bc1e0acfb1be22 Martin committed Mar 6, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 bin/openvpn-client-connect-ldap
@@ -1145,8 +1145,8 @@ sub ldapEntry2File {
} else {
if ($type == CFG_BOOL) {
my $str = lc(join("", @{$value}));
- if ($str eq 'true' || $str eq 'yes' || $str eq 'y' || $str eq '1' && $ovpn_param=='push-reset') {
- $write_str = ' $ovpn_param ';
+ if ($str eq 'true' || $str eq 'yes' || $str eq 'y' || $str eq '1' && $ovpn_param eq 'push-reset') {
+ $write_str = $ovpn_param;
}
elsif ($str eq 'true' || $str eq 'yes' || $str eq 'y' || $str eq '1') {
$write_str = 'push "' . $ovpn_param . '"';

0 comments on commit 66e2ae1

Please sign in to comment.