not setting push-reset the right way #1

Open
peks opened this Issue Mar 6, 2012 · 1 comment

Comments

Projects
None yet
2 participants

peks commented Mar 6, 2012

Setting openvpnPushReset=True in LDAP manifests in 'push "push-reset"' in config file.
Example: openvpnPushReset=True
-- snip --
ifconfig-push 10.1.XX.XX 10.1.XX.XX
push "push-reset"
push "route 10.254.0.0 255.255.255.0"
-- snip --

Code:
openvpn-client-connect-ldap +1146
if ($type == CFG_BOOL) {
my $str = lc(join("", @{$value}));
if ($str eq 'true' || $str eq 'yes' || $str eq 'y' || $str eq '1') {
$write_str = 'push "' . $ovpn_param . '"';
}
}

Owner

bfg commented Mar 6, 2012

Whoaaa... fork a repo and submit pull request...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment