Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
pve-manager
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
pve-manager
Commits
ad9c5c05
Commit
ad9c5c05
authored
Mar 04, 2013
by
Dietmar Maurer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix IP address verification
parent
bc33273b
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
3 deletions
+9
-3
Network.pm
PVE/API2/Network.pm
+2
-2
changelog.Debian
debian/changelog.Debian
+6
-0
defines.mk
defines.mk
+1
-1
No files found.
PVE/API2/Network.pm
View file @
ad9c5c05
...
...
@@ -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_
ipto
bin
('
255.255.255.255
',
4
);
my
$binhost
=
$binip
|
$binmask
;
raise_param_exc
({
address
=>
"
$param
->{address} is not a valid host ip address.
"
})
...
...
debian/changelog.Debian
View file @
ad9c5c05
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
...
...
defines.mk
View file @
ad9c5c05
...
...
@@ -2,7 +2,7 @@ RELEASE=2.3
VERSION=2.3
PACKAGE=pve-manager
PACKAGERELEASE=1
1
PACKAGERELEASE=1
2
BINDIR=${DESTDIR}/usr/bin
PERLLIBDIR=${DESTDIR}/usr/share/perl5
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment