From: <ow...@us...> - 2009-05-09 16:57:57
|
Revision: 2818 http://ipcop.svn.sourceforge.net/ipcop/?rev=2818&view=rev Author: owes Date: 2009-05-09 16:57:32 +0000 (Sat, 09 May 2009) Log Message: ----------- Avoid some messages when OpenVPN is not fully configured. Modified Paths: -------------- ipcop/trunk/src/scripts/puzzleFwRules.pl Modified: ipcop/trunk/src/scripts/puzzleFwRules.pl =================================================================== --- ipcop/trunk/src/scripts/puzzleFwRules.pl 2009-05-09 08:31:41 UTC (rev 2817) +++ ipcop/trunk/src/scripts/puzzleFwRules.pl 2009-05-09 16:57:32 UTC (rev 2818) @@ -929,6 +929,11 @@ 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'})); } # Deny only those traffic which is open in vanila IPCop. This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |