Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
66b377c4
Commit
66b377c4
authored
Jun 26, 2005
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove obsoloted check
parent
26375a28
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
22 deletions
+2
-22
src/misc/httpd.c
src/misc/httpd.c
+2
-22
No files found.
src/misc/httpd.c
View file @
66b377c4
...
...
@@ -1337,28 +1337,8 @@ char* httpd_ClientIP( httpd_client_t *cl )
char
*
psz_ip
;
psz_ip
=
(
char
*
)
malloc
(
NI_MAXNUMERICHOST
+
2
);
#ifdef HAVE_GETNAMEINFO
/* FIXME not very good check */
if
(
(
cl
->
sock
.
ss_family
==
AF_INET6
)
&&
IN6_IS_ADDR_V4MAPPED
(
&
((
const
struct
sockaddr_in6
*
)
&
cl
->
sock
)
->
sin6_addr
)
)
{
/* If client is using IPv4 but server is using IPv6 */
struct
sockaddr_in
a
;
memset
(
&
a
,
0
,
sizeof
(
a
)
);
a
.
sin_family
=
AF_INET
;
a
.
sin_port
=
((
const
struct
sockaddr_in6
*
)
&
cl
->
sock
)
->
sin6_port
;
a
.
sin_addr
.
s_addr
=
((
const
uint32_t
*
)
&
((
const
struct
sockaddr_in6
*
)
&
cl
->
sock
)
->
sin6_addr
)[
3
];
i
=
vlc_getnameinfo
(
(
const
struct
sockaddr
*
)
&
a
,
sizeof
(
a
),
psz_ip
+
1
,
NI_MAXNUMERICHOST
,
NULL
,
NI_NUMERICHOST
);
}
else
#endif
i
=
vlc_getnameinfo
(
(
const
struct
sockaddr
*
)
&
cl
->
sock
,
cl
->
i_sock_size
,
psz_ip
+
1
,
NI_MAXNUMERICHOST
,
NULL
,
NI_NUMERICHOST
);
i
=
vlc_getnameinfo
(
(
const
struct
sockaddr
*
)
&
cl
->
sock
,
cl
->
i_sock_size
,
psz_ip
+
1
,
NI_MAXNUMERICHOST
,
NULL
,
NI_NUMERICHOST
);
if
(
i
!=
0
)
return
NULL
;
...
...
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