]> git.proxmox.com Git - pve-manager.git/commitdiff
fix IP address verification
authorDietmar Maurer <dietmar@proxmox.com>
Mon, 4 Mar 2013 05:56:42 +0000 (06:56 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Mon, 4 Mar 2013 05:56:42 +0000 (06:56 +0100)
PVE/API2/Network.pm
debian/changelog.Debian
defines.mk

index 850470e821ee5e7afa833bc36aa52a4fc8637cb7..db32c8ec05ee64ebb273a07bf465a2c8a6dbbd12 100644 (file)
@@ -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." })
index 448eb5b8b7f2f0b2cdd48f77b5621049cf1ab18d..aa21812407e4980429f92e228b8e7cb729ee6d1a 100644 (file)
@@ -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
index 8647e35979a1d48df84643fa0286f8386e399cae..7258f9d53823139bc69400241886678b2feddbb7 100644 (file)
@@ -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