openvpn_add_dhcpopts already sets redirect-gateway, don't add it a second time. Ticket #6633

This commit is contained in:
Chris Buechler 2016-07-20 19:56:42 -05:00
parent eeddd261f7
commit f8038899f2

View File

@ -1209,10 +1209,6 @@ function openvpn_resync_csc(& $settings) {
openvpn_add_dhcpopts($settings, $conf);
if ($settings['gwredir']) {
$conf .= "push \"redirect-gateway def1\"\n";
}
openvpn_add_custom($settings, $conf);
/* Loop through servers, find which ones can use this CSC */
if (is_array($config['openvpn']['openvpn-server'])) {