1 |
diff -ruN smeserver-openvpn-bridge-2.1.old/root/etc/e-smith/templates/etc/openvpn/bridge/openvpn.conf/65routes smeserver-openvpn-bridge-2.1/root/etc/e-smith/templates/etc/openvpn/bridge/openvpn.conf/65routes |
2 |
--- smeserver-openvpn-bridge-2.1.old/root/etc/e-smith/templates/etc/openvpn/bridge/openvpn.conf/65routes 2018-11-15 11:27:46.513565713 +0100 |
3 |
+++ smeserver-openvpn-bridge-2.1/root/etc/e-smith/templates/etc/openvpn/bridge/openvpn.conf/65routes 2018-11-15 11:29:36.875968052 +0100 |
4 |
@@ -21,7 +21,8 @@ |
5 |
my $mask = $network->prop('Mask'); |
6 |
my $gw = $network->prop('Router') || ''; |
7 |
my $vpn = $network->prop('VPN') || ''; |
8 |
- if ($gw ne '' || $vpn ne '') { |
9 |
+ my $doPush = $network->prop('PushRoute') || 'enabled'; |
10 |
+ if ( ($gw ne '' || $vpn ne '') && $doPush eq 'enabled' ){ |
11 |
$route .= "push \"route $addr $mask"; |
12 |
$route .= " $gw" if ($vpn eq ''); |
13 |
$OUT .= "$route\"\n"; |