/[smecontribs]/rpms/smeserver-openvpn-s2s/contribs8/smeserver-openvpn-s2s-0.1-check_multiple_networks.patch
ViewVC logotype

Contents of /rpms/smeserver-openvpn-s2s/contribs8/smeserver-openvpn-s2s-0.1-check_multiple_networks.patch

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


Revision 1.1 - (show annotations) (download)
Sun Mar 3 21:10:29 2013 UTC (11 years, 9 months ago) by unnilennium
Branch: MAIN
CVS Tags: smeserver-openvpn-s2s-0_1-21_el5_sme, smeserver-openvpn-s2s-0_1-22_el5_sme, smeserver-openvpn-s2s-0_1-25_el5_sme, smeserver-openvpn-s2s-0_1-26_el5_sme, smeserver-openvpn-s2s-0_1-24_el5_sme, smeserver-openvpn-s2s-0_1-23_el5_sme, smeserver-openvpn-s2s-0_1-27_el5_sme, HEAD
Initial import

1 diff -Nur -x '*.orig' -x '*.rej' smeserver-openvpn-s2s-0.1/root/etc/e-smith/events/actions/openvpn-s2s-delete-networks mezzanine_patched_smeserver-openvpn-s2s-0.1/root/etc/e-smith/events/actions/openvpn-s2s-delete-networks
2 --- smeserver-openvpn-s2s-0.1/root/etc/e-smith/events/actions/openvpn-s2s-delete-networks 2010-10-17 01:47:16.000000000 +0200
3 +++ mezzanine_patched_smeserver-openvpn-s2s-0.1/root/etc/e-smith/events/actions/openvpn-s2s-delete-networks 2010-10-17 01:43:34.000000000 +0200
4 @@ -33,9 +33,8 @@
5 # buils a list of network used by a VPN daemon
6 foreach my $vpn ($ovpndb->get_all_by_prop(type=>'server'),
7 $ovpndb->get_all_by_prop(type=>'client')){
8 - $vpnnet = $vpn->prop('RemoteNetworks') || '';
9 - if ($vpnnet ne ''){
10 - my ($vpnnet,undef) = split(/\//, $vpnnet);
11 + foreach (split(/[;,]/,($vpn->prop('RemoteNetworks') || ''))){
12 + my ($vpnnet,undef) = split(/\//, $_);
13 push @vpnnets, $vpnnet;
14 }
15 push @vpnnets, $vpn->prop('RemoteIP');

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