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
36d63105
Commit
36d63105
authored
May 28, 2008
by
Kai Blin
Committed by
Alexandre Julliard
May 28, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ws2_32: Change back magic 127.12.34.56 to loopback on connect().
parent
9d566032
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
socket.c
dlls/ws2_32/socket.c
+13
-0
No files found.
dlls/ws2_32/socket.c
View file @
36d63105
...
...
@@ -1492,6 +1492,19 @@ int WINAPI WS_connect(SOCKET s, const struct WS_sockaddr* name, int namelen)
}
else
{
if
(
name
->
sa_family
==
WS_AF_INET
)
{
struct
sockaddr_in
*
in4
=
(
struct
sockaddr_in
*
)
&
uaddr
;
if
(
memcmp
(
&
in4
->
sin_addr
,
&
magic_loopback_addr
,
4
)
==
0
)
{
/* Trying to connect to magic replace-loopback address,
* assuming we really want to connect to localhost */
TRACE
(
"Trying to connect to magic IP address, using "
"INADDR_LOOPBACK instead.
\n
"
);
in4
->
sin_addr
.
s_addr
=
htonl
(
WS_INADDR_LOOPBACK
);
}
}
if
(
connect
(
fd
,
&
uaddr
.
addr
,
uaddrlen
)
==
0
)
goto
connect_success
;
}
...
...
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