/[smeserver]/rpms/e-smith-portforwarding/sme7/e-smith-portforwarding-1.2.0-migratedb.patch
ViewVC logotype

Diff of /rpms/e-smith-portforwarding/sme7/e-smith-portforwarding-1.2.0-migratedb.patch

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

Revision 1.1 by slords, Tue Jun 26 18:35:58 2007 UTC Revision 1.2 by slords, Wed Jun 27 18:30:33 2007 UTC
# Line 6  diff -Nur -x '*.orig' -x '*.rej' e-smith Line 6  diff -Nur -x '*.orig' -x '*.rej' e-smith
6  +    my %FDB;  +    my %FDB;
7  +    foreach my $proto ('TCP', 'UDP') {  +    foreach my $proto ('TCP', 'UDP') {
8  +        $FDB{$proto} = esmith::ConfigDB->open("portforward_" . lc($proto))  +        $FDB{$proto} = esmith::ConfigDB->open("portforward_" . lc($proto))
9  +            || die "Can't open portforward" . lc($proto) . " database: $!\n";  +            || esmith::ConfigDB->create("portforward_" . lc($proto));
10  +  +
11  +        my %rules = split ',', $DB->get_prop_and_delete('masq', "${proto}Forwards")  +        my %rules = split ',', $DB->get_prop_and_delete('masq', "${proto}Forwards")
12  +            || next;  +            || next;


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

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