Remove gate from authorized address space
This commit is contained in:
parent
b470057ae7
commit
b5851bf5ed
@ -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 {
|
||||
|
Reference in New Issue
Block a user