Commit ad9c5c05 authored by Dietmar Maurer's avatar Dietmar Maurer

fix IP address verification

parent bc33273b
......@@ -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." })
......
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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment