fix IP address verification
This commit is contained in:
parent
572c2d2bd7
commit
d09f6f7d3c
@ -3,6 +3,7 @@ package PVE::API2::Network;
|
||||
use strict;
|
||||
use warnings;
|
||||
|
||||
use Net::IP qw(:PROC);
|
||||
use PVE::Tools qw(extract_param);
|
||||
use PVE::SafeSyslog;
|
||||
use PVE::INotify;
|
||||
@ -12,7 +13,6 @@ use PVE::RPCEnvironment;
|
||||
use PVE::JSONSchema qw(get_standard_option);
|
||||
use PVE::AccessControl;
|
||||
use IO::File;
|
||||
use Net::IP qw(:PROC);
|
||||
|
||||
use base qw(PVE::RESTHandler);
|
||||
|
||||
@ -165,7 +165,7 @@ my $check_ipv4_settings = sub {
|
||||
|
||||
my $binip = Net::IP::ip_iptobin($param->{address}, 4);
|
||||
my $binmask = Net::IP::ip_iptobin($param->{netmask}, 4);
|
||||
my $broadcast = Net::IP::ip_to_bin('255.255.255.255', 4);
|
||||
my $broadcast = Net::IP::ip_iptobin('255.255.255.255', 4);
|
||||
my $binhost = $binip | $binmask;
|
||||
|
||||
raise_param_exc({ address => "$param->{address} is not a valid host ip address." })
|
||||
|
6
debian/changelog.Debian
vendored
6
debian/changelog.Debian
vendored
@ -1,3 +1,9 @@
|
||||
pve-manager (2.3-12) unstable; urgency=low
|
||||
|
||||
* fix IP address verification (Undefined subroutine &Net::IP::ip_to_bin)
|
||||
|
||||
-- Proxmox Support Team <support@proxmox.com> Mon, 04 Mar 2013 06:56:12 +0100
|
||||
|
||||
pve-manager (2.3-11) unstable; urgency=low
|
||||
|
||||
* bugfix #301 Add container hostname validation in GUI
|
||||
|
@ -2,7 +2,7 @@ RELEASE=2.3
|
||||
|
||||
VERSION=2.3
|
||||
PACKAGE=pve-manager
|
||||
PACKAGERELEASE=11
|
||||
PACKAGERELEASE=12
|
||||
|
||||
BINDIR=${DESTDIR}/usr/bin
|
||||
PERLLIBDIR=${DESTDIR}/usr/share/perl5
|
||||
|
Loading…
Reference in New Issue
Block a user