1 |
diff -urN e-smith-dnscache-2.4.0/root/var/service/dnscache/run e-smith-dnscache-2.4.0-loopback/root/var/service/dnscache/run |
2 |
--- e-smith-dnscache-2.4.0/root/var/service/dnscache/run 2008-10-07 10:35:08.000000000 -0700 |
3 |
+++ e-smith-dnscache-2.4.0-loopback/root/var/service/dnscache/run 2016-07-27 22:31:32.000000000 -0700 |
4 |
@@ -137,9 +137,9 @@ |
5 |
my %access = map { $_ => 1 } @_; |
6 |
|
7 |
my $dir = '/var/service/dnscache/root/ip'; |
8 |
- unless (-f "$dir/127.0.0.1") |
9 |
+ unless (-f "$dir/127.0.0") |
10 |
{ |
11 |
- open F,">$dir/127.0.0.1" |
12 |
+ open F,">$dir/127.0.0" |
13 |
|| die "Cannot add access file for loopback network: $!\n"; |
14 |
close F; |
15 |
} |
16 |
@@ -149,7 +149,7 @@ |
17 |
|
18 |
foreach my $aclfile (readdir (ACCESS)) |
19 |
{ |
20 |
- next if "$aclfile" eq "127.0.0.1"; |
21 |
+ next if "$aclfile" eq "127.0.0"; |
22 |
next if -d "$aclfile"; |
23 |
if (exists $access{$aclfile}) |
24 |
{ |
25 |
@@ -167,7 +167,7 @@ |
26 |
|
27 |
foreach my $aclfile (keys %access) |
28 |
{ |
29 |
- link "$dir/127.0.0.1", "$dir/$aclfile" or |
30 |
+ link "$dir/127.0.0", "$dir/$aclfile" or |
31 |
die "Cannot add network access for $dir/$aclfile: $!\n"; |
32 |
} |
33 |
} |