2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-22 11:42:05 +00:00

fix configfpc with no gateway

This commit is contained in:
Jarrod Johnson 2018-08-09 09:23:40 -04:00
parent a87db132b7
commit a71a6c40b0

View File

@ -936,7 +936,7 @@ sub setnetinfo {
}
@cmd = (0x01, $channel_number, 0x6, @mask);
}
} elsif ($subcommand =~ m/gateway/) {
} elsif ($subcommand =~ m/gateway/ and $argument) {
my $gw = inet_ntoa(inet_aton($argument));
my @mask = split /\./, $gw;
foreach (0 .. 3) {