Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
David Goulet
Tor
Commits
1454f4ad
Commit
1454f4ad
authored
Jun 13, 2003
by
Roger Dingledine
Browse files
improve portability: inet_aton is missing on solaris
svn:r314
parent
030564e9
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/or/connection.c
View file @
1454f4ad
...
...
@@ -272,8 +272,7 @@ int retry_all_connections(uint16_t or_listenport, uint16_t ap_listenport, uint16
if
(
ap_listenport
)
{
bindaddr
.
sin_port
=
htons
(
ap_listenport
);
inet_aton
(
"127.0.0.1"
,
&
(
bindaddr
.
sin_addr
));
/* the AP listens only on localhost! */
/* XXX inet_aton is missing on solaris. use something simpler? */
bindaddr
.
sin_addr
.
s_addr
=
htonl
(
INADDR_LOOPBACK
);
/* the AP listens only on localhost! */
if
(
!
connection_get_by_type
(
CONN_TYPE_AP_LISTENER
))
{
connection_ap_create_listener
(
&
bindaddr
);
}
...
...
Write
Preview
Supports
Markdown
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