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
101c2b86
Commit
101c2b86
authored
May 08, 2015
by
Wolfgang Bumiller
Committed by
Dietmar Maurer
May 08, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
HTTPServer.pm: accept ip6 connections
parent
dbcfa2af
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
HTTPServer.pm
PVE/HTTPServer.pm
+2
-2
No files found.
PVE/HTTPServer.pm
View file @
101c2b86
...
@@ -1504,8 +1504,8 @@ sub accept_connections {
...
@@ -1504,8 +1504,8 @@ sub accept_connections {
}
}
if
(
my
$sin
=
getpeername
(
$clientfh
))
{
if
(
my
$sin
=
getpeername
(
$clientfh
))
{
my
(
$p
port
,
$phost
)
=
Socket::
unpack_sockaddr_in
(
$sin
);
my
(
$p
family
,
$pport
,
$phost
)
=
PVE::Tools::
unpack_sockaddr_in46
(
$sin
);
(
$reqstate
->
{
peer_port
},
$reqstate
->
{
peer_host
})
=
(
$pport
,
Socket::
inet_nto
a
(
$phost
));
(
$reqstate
->
{
peer_port
},
$reqstate
->
{
peer_host
})
=
(
$pport
,
Socket::
inet_nto
p
(
$pfamily
,
$phost
));
}
}
if
(
!
$self
->
{
trusted_env
}
&&
!
$self
->
check_host_access
(
$reqstate
->
{
peer_host
}))
{
if
(
!
$self
->
{
trusted_env
}
&&
!
$self
->
check_host_access
(
$reqstate
->
{
peer_host
}))
{
...
...
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