Revision: 2883
http://ipcop.svn.sourceforge.net/ipcop/?rev=2883&view=rev
Author: owes
Date: 2009-05-21 16:18:54 +0000 (Thu, 21 May 2009)
Log Message:
-----------
This should work better, even when the config files are fully missing
Modified Paths:
--------------
ipcop/trunk/src/scripts/puzzleFwRules.pl
Modified: ipcop/trunk/src/scripts/puzzleFwRules.pl
===================================================================
--- ipcop/trunk/src/scripts/puzzleFwRules.pl 2009-05-21 14:14:42 UTC (rev
2882)
+++ ipcop/trunk/src/scripts/puzzleFwRules.pl 2009-05-21 16:18:54 UTC (rev
2883)
@@ -934,17 +934,16 @@
if (-e "/var/ipcop/vpn/settings") {
&General::readhash("/var/ipcop/vpn/settings", \%ipsecSettings);
}
-
# Retrieve OpenVPN settings
my %ovpnSettings = ();
if (-e "/var/ipcop/ovpn/settings") {
&General::readhash("/var/ipcop/ovpn/settings", \%ovpnSettings);
-
- # Avoid some "Use of initialized value in string eq at line xxx"
messages
- $ovpnSettings{'ENABLED_RED_1'} = 'off' if
(!defined($ovpnSettings{'ENABLED_RED_1'}));
- $ovpnSettings{'ENABLED_BLUE_1'} = 'off' if
(!defined($ovpnSettings{'ENABLED_BLUE_1'}));
- $ovpnSettings{'ENABLED_ORANGE_1'} = 'off' if
(!defined($ovpnSettings{'ENABLED_ORANGE_1'}));
}
+ # Avoid some "Use of initialized value in string eq at line xxx" messages
+ $ipsecSettings{'ENABLED'} = 'off' if (!exists($ipsecSettings{'ENABLED'}));
+ $ovpnSettings{'ENABLED_RED_1'} = 'off' if
(!exists($ovpnSettings{'ENABLED_RED_1'}));
+ $ovpnSettings{'ENABLED_BLUE_1'} = 'off' if
(!exists($ovpnSettings{'ENABLED_BLUE_1'}));
+ $ovpnSettings{'ENABLED_ORANGE_1'} = 'off' if
(!exists($ovpnSettings{'ENABLED_ORANGE_1'}));
# Deny only those traffic which is open in vanila IPCop.
# Other traffic blocked by IPCop rules. So it is possible by using
related, established connections
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, &
iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian
Group, R/GA, & Big Spaceship. http://www.creativitycat.com
_______________________________________________
Ipcop-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ipcop-svn