Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
S
Stunserver
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
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
nanahira
Stunserver
Commits
ffe05770
Commit
ffe05770
authored
Apr 24, 2013
by
John Selbie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Another quick fix for Windows
parent
ef52d4a2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
stuncore/socketaddress.cpp
stuncore/socketaddress.cpp
+2
-3
No files found.
stuncore/socketaddress.cpp
View file @
ffe05770
...
@@ -350,14 +350,13 @@ HRESULT CSocketAddress::GetLocalHost(uint16_t family, CSocketAddress* pAddr)
...
@@ -350,14 +350,13 @@ HRESULT CSocketAddress::GetLocalHost(uint16_t family, CSocketAddress* pAddr)
}
}
else
else
{
{
sockaddr_in6
addr6
;
sockaddr_in6
addr6
=
{}
;
COMPILE_TIME_ASSERT
(
sizeof
(
addr6
.
sin6_addr
)
==
16
);
COMPILE_TIME_ASSERT
(
sizeof
(
addr6
.
sin6_addr
)
==
16
);
// ::1
// ::1
uint8_t
ip6
[
16
]
=
{};
uint8_t
ip6
[
16
]
=
{};
ip6
[
15
]
=
1
;
ip6
[
15
]
=
1
;
addr6
.
sin6_family
=
AF_INET6
;
addr6
.
sin6_family
=
AF_INET6
;
memcpy
(
&
addr6
.
sin6_addr
,
ip6
,
16
);
memcpy
(
&
addr6
.
sin6_addr
,
ip6
,
16
);
*
pAddr
=
CSocketAddress
(
addr6
);
*
pAddr
=
CSocketAddress
(
addr6
);
...
...
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