1 |
unnilennium |
1.1 |
diff -Nur -x '*.orig' -x '*.rej' smeserver-openvpn-bridge-2.0/root/etc/e-smith/templates/etc/openvpn/bridge/openvpn.conf/60options mezzanine_patched_smeserver-openvpn-bridge-2.0/root/etc/e-smith/templates/etc/openvpn/bridge/openvpn.conf/60options |
2 |
|
|
--- smeserver-openvpn-bridge-2.0/root/etc/e-smith/templates/etc/openvpn/bridge/openvpn.conf/60options 2010-10-19 12:43:40.000000000 +0200 |
3 |
|
|
+++ mezzanine_patched_smeserver-openvpn-bridge-2.0/root/etc/e-smith/templates/etc/openvpn/bridge/openvpn.conf/60options 2010-10-19 12:43:21.000000000 +0200 |
4 |
|
|
@@ -8,6 +8,7 @@ |
5 |
|
|
my $redirectGW = ${'openvpn-bridge'}{redirectGW} || 'PerClient'; |
6 |
|
|
my $proto = ${'openvpn-bridge'}{protocol} || 'udp'; |
7 |
|
|
my $duplicate = ${'openvpn-bridge'}{duplicateCN} || 'disabled'; |
8 |
|
|
+my $pushRoutes = ${'openvpn-bridge'}{PushLocalNetworks} || 'enabled'; |
9 |
|
|
|
10 |
|
|
use esmith::NetworksDB; |
11 |
|
|
my $ndb = esmith::NetworksDB->open_ro() || |
12 |
|
|
@@ -28,13 +29,15 @@ |
13 |
|
|
|
14 |
|
|
HERE |
15 |
|
|
|
16 |
|
|
-foreach my $network (@networks) { |
17 |
|
|
- if ($network->prop('Router')) { |
18 |
|
|
- $OUT .= sprintf("push \"route %s %s %s\"\n", |
19 |
|
|
+if ($pushRoutes eq 'enabled'){ |
20 |
|
|
+ foreach my $network (@networks) { |
21 |
|
|
+ if ($network->prop('Router')) { |
22 |
|
|
+ $OUT .= sprintf("push \"route %s %s %s\"\n", |
23 |
|
|
$network->key(), |
24 |
|
|
$network->prop('Mask'), |
25 |
|
|
$network->prop('Router') |
26 |
|
|
- ); |
27 |
|
|
+ ); |
28 |
|
|
+ } |
29 |
|
|
} |
30 |
|
|
} |
31 |
|
|
|