Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
d48eade7
Commit
d48eade7
authored
Jul 08, 2009
by
Juan Lang
Committed by
Alexandre Julliard
Jul 09, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winhttp: Support IPv6 addresses in open_connection.
parent
646b9cae
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
request.c
dlls/winhttp/request.c
+8
-1
No files found.
dlls/winhttp/request.c
View file @
d48eade7
...
...
@@ -710,11 +710,15 @@ BOOL WINAPI WinHttpQueryHeaders( HINTERNET hrequest, DWORD level, LPCWSTR name,
return
ret
;
}
#ifndef INET6_ADDRSTRLEN
#define INET6_ADDRSTRLEN 46
#endif
static
BOOL
open_connection
(
request_t
*
request
)
{
connect_t
*
connect
;
const
void
*
addr
;
char
address
[
32
];
char
address
[
INET6_ADDRSTRLEN
];
WCHAR
*
addressW
;
INTERNET_PORT
port
;
socklen_t
slen
;
...
...
@@ -733,6 +737,9 @@ static BOOL open_connection( request_t *request )
case
AF_INET
:
addr
=
&
((
struct
sockaddr_in
*
)
&
connect
->
sockaddr
)
->
sin_addr
;
break
;
case
AF_INET6
:
addr
=
&
((
struct
sockaddr_in6
*
)
&
connect
->
sockaddr
)
->
sin6_addr
;
break
;
default:
WARN
(
"unsupported address family %d
\n
"
,
connect
->
sockaddr
.
ss_family
);
return
FALSE
;
...
...
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