mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-27 22:03:31 +01:00
improve portability: inet_aton is missing on solaris
svn:r314
This commit is contained in:
parent
030564e95d
commit
1454f4aded
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user