Archived
1
0

Remove gate from authorized address space

This commit is contained in:
Mercier Pierre-Olivier 2013-09-19 05:02:40 +02:00
parent b470057ae7
commit b5851bf5ed

View File

@ -42,6 +42,15 @@ if ($ref =~ m<^refs/tags/(.+)$>)
exit 1;
}
$net = ip2long("10.41.253.0");
$mask = ip2long("255.255.255.0");
if (($ip & $mask) == ($net & $mask))
{
log ERROR, "[ACU] You are not authorized to push from this IP. This will be reported.";
exit 1;
}
# Get project informations
my $project;
eval {