diff options
author | Roger Dingledine <arma@torproject.org> | 2003-06-13 09:25:55 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2003-06-13 09:25:55 +0000 |
commit | 1454f4aded3bb2b99d59d7f2bf1fb636403b17d8 (patch) | |
tree | 73a9bca0179c20fc7282d2161ff7289f40e67670 /src | |
parent | 030564e95d85a0998e6341e26154767405e5482f (diff) | |
download | tor-1454f4aded3bb2b99d59d7f2bf1fb636403b17d8.tar.gz tor-1454f4aded3bb2b99d59d7f2bf1fb636403b17d8.zip |
improve portability: inet_aton is missing on solaris
svn:r314
Diffstat (limited to 'src')
-rw-r--r-- | src/or/connection.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/or/connection.c b/src/or/connection.c index 4614ae934c..665357e8f4 100644 --- a/src/or/connection.c +++ b/src/or/connection.c @@ -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); } |