/[smeserver]/rpms/e-smith-dnscache/sme7/e-smith-dnscache-1.0.0.validateNameServer.patch
ViewVC logotype

Contents of /rpms/e-smith-dnscache/sme7/e-smith-dnscache-1.0.0.validateNameServer.patch

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


Revision 1.2 - (show annotations) (download)
Tue Oct 7 18:01:45 2008 UTC (16 years, 1 month ago) by slords
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +0 -0 lines
Error occurred while calculating annotation data.
FILE REMOVED
New streams

1 diff -Nur -x '*.orig' -x '*.rej' e-smith-dnscache-1.0.0/root/var/service/dnscache/run mezzanine_patched_e-smith-dnscache-1.0.0/root/var/service/dnscache/run
2 --- e-smith-dnscache-1.0.0/root/var/service/dnscache/run 2006-03-14 15:59:06.000000000 -0500
3 +++ mezzanine_patched_e-smith-dnscache-1.0.0/root/var/service/dnscache/run 2006-04-30 20:24:13.000000000 -0400
4 @@ -85,8 +85,13 @@
5 my $mask = $net->prop('Mask');
6 my $key = $net->key;
7 my $systemlocalnetwork = $net->prop('SystemLocalNetwork') || 'no';
8 - my $nameserver = $net->prop('NameServer') ||
9 - (($systemlocalnetwork eq 'yes') ? $tinydns_ip : 'none');
10 + my $nameserver = $net->prop('NameServer');
11 + if (defined $nameserver and $nameserver eq $ENV{IP})
12 + {
13 + warn("NameServer property for net $key ($nameserver) would create loop - ignoring\n");
14 + $nameserver = undef;
15 + }
16 + $nameserver ||= ($systemlocalnetwork eq 'yes') ? $tinydns_ip : 'none';
17 push @localnetworks,
18 esmith::util::computeAllLocalNetworkPrefixes ($key, $mask);
19

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