/[smecontribs]/rpms/smeserver-openvpn-bridge/contribs8/smeserver-openvpn-bridge-2.0-option_to_disable_route_push.patch
ViewVC logotype

Annotation of /rpms/smeserver-openvpn-bridge/contribs8/smeserver-openvpn-bridge-2.0-option_to_disable_route_push.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (hide annotations) (download)
Sun Mar 3 21:14:34 2013 UTC (11 years, 8 months ago) by unnilennium
Branch: MAIN
CVS Tags: smeserver-openvpn-bridge-2_0-49_el5_sme, smeserver-openvpn-bridge-2_0-55_el5_sme, smeserver-openvpn-bridge-2_0-48_el5_sme, smeserver-openvpn-bridge-2_0-56_el5_sme, smeserver-openvpn-bridge-2_0-51_el5_sme, smeserver-openvpn-bridge-2_0-52_el5_sme, smeserver-openvpn-bridge-2_0-53_el5_sme, smeserver-openvpn-bridge-2_0-54_el5_sme, smeserver-openvpn-bridge-2_0-47_el5_sme, smeserver-openvpn-bridge-2_0-50_el5_sme, HEAD
Initial import

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    

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed