Whitelist the local IP of the server itself

This commit is contained in:
Daniel Berteaud 2013-05-03 11:17:56 +02:00
parent 6ffdca7501
commit ece16d1159
1 changed files with 1 additions and 1 deletions

View File

@ -6,7 +6,7 @@ use Net::IPv4Addr;
my $n = esmith::NetworksDB->open_ro() ||
die "Couldn't open networks DB\n";
my @ip = ("127.0.0.0/8");
my @ip = ("127.0.0.0/8", $LocalIP);
# Add hosts which can access the server-manager to the whitelist
foreach (split /[,;]/, (${'httpd-admin'}{'ValidFrom'} || '')){