Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nx-libs
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
dimbor
nx-libs
Commits
d2e8551e
Commit
d2e8551e
authored
Jun 02, 2015
by
Salvador Fandino
Committed by
Mike Gabriel
Jul 04, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Simplify ParseListenOption
Merge code paths. Use GetHostAddress to resolve the target host address instead of inet_aton.
parent
5ea2d901
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
12 deletions
+4
-12
Loop.cpp
nxcomp/Loop.cpp
+4
-12
No files found.
nxcomp/Loop.cpp
View file @
d2e8551e
...
...
@@ -13571,25 +13571,17 @@ int ParseListenOption(int &address)
// on localhost.
//
if
(
control
->
ProxyMode
==
proxy_server
)
{
address
=
(
int
)
inet_addr
(
"127.0.0.1"
);
if
(
loopbackBind
||
(
control
->
ProxyMode
==
proxy_server
))
{
address
=
htonl
(
INADDR_LOOPBACK
);
}
else
{
if
(
loopbackBind
)
{
address
=
htonl
(
INADDR_LOOPBACK
);
}
else
{
address
=
htonl
(
INADDR_ANY
);
}
address
=
htonl
(
INADDR_ANY
);
}
}
else
{
address
=
inet_addr
(
listenHost
);
address
=
GetHostAddress
(
listenHost
);
}
return
1
;
...
...
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