Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
L
libzmq
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
libzmq
Commits
071ec1a9
Commit
071ec1a9
authored
Feb 06, 2020
by
Doron Somech
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
problem:Fallback to localhost in ws_address has no effect
Solution: return after the fallback fixes #3809
parent
7bfd9512
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
ws_address.cpp
src/ws_address.cpp
+3
-1
No files found.
src/ws_address.cpp
View file @
071ec1a9
...
...
@@ -72,8 +72,10 @@ zmq::ws_address_t::ws_address_t (const sockaddr *sa_, socklen_t sa_len_)
char
hbuf
[
NI_MAXHOST
];
const
int
rc
=
getnameinfo
(
addr
(),
addrlen
(),
hbuf
,
sizeof
(
hbuf
),
NULL
,
0
,
NI_NUMERICHOST
);
if
(
rc
!=
0
)
if
(
rc
!=
0
)
{
_host
=
std
::
string
(
"localhost"
);
return
;
}
std
::
ostringstream
os
;
...
...
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