mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-07-31 08:41:18 +00:00
-Have networks/dhcp ignore loopback network
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@1838 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
@@ -386,7 +386,7 @@ sub process_request
|
||||
my @ent = split /\s+/;
|
||||
my $firstoctet = $ent[0];
|
||||
$firstoctet =~ s/^(\d+)\..*/$1/;
|
||||
if ($ent[0] eq "169.254.0.0" or ($firstoctet >= 224 and $firstoctet <= 239))
|
||||
if ($ent[0] eq "169.254.0.0" or ($firstoctet >= 224 and $firstoctet <= 239) or $ent[0] eq "127.0.0.0")
|
||||
{
|
||||
next;
|
||||
}
|
||||
|
@@ -60,7 +60,7 @@ sub process_request
|
||||
my @ent = split /\s+/, $_;
|
||||
my $firstoctet = $ent[0];
|
||||
$firstoctet =~ s/^(\d+)\..*/$1/;
|
||||
if ($ent[0] eq "169.254.0.0" or ($firstoctet >= 224 and $firstoctet <= 239))
|
||||
if ($ent[0] eq "169.254.0.0" or ($firstoctet >= 224 and $firstoctet <= 239) or $ent[0] eq "127.0.0.0")
|
||||
{
|
||||
next;
|
||||
}
|
||||
|
Reference in New Issue
Block a user