summaryrefslogtreecommitdiff
path: root/src/or/rendservice.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2004-10-16 21:53:30 +0000
committerNick Mathewson <nickm@torproject.org>2004-10-16 21:53:30 +0000
commit47dc024f7eb268dca65949d68914aa29b2840711 (patch)
treef22f9795384bff92c731d95872804bc416abca82 /src/or/rendservice.c
parent8300c4ae6a0d55c40d94613b5e22cb25b5723bd1 (diff)
downloadtor-47dc024f7eb268dca65949d68914aa29b2840711.tar.gz
tor-47dc024f7eb268dca65949d68914aa29b2840711.zip
Change interface of parse_addr_port() to return address in host order, since most users seem to want that.
svn:r2542
Diffstat (limited to 'src/or/rendservice.c')
-rw-r--r--src/or/rendservice.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/rendservice.c b/src/or/rendservice.c
index 090a3a7cf9..2c86b4385f 100644
--- a/src/or/rendservice.c
+++ b/src/or/rendservice.c
@@ -165,13 +165,13 @@ static rend_service_port_config_t *parse_port_config(const char *string)
log_fn(LOG_WARN, "Port out of range");
return NULL;
}
- addr = htonl(0x7F000001u); /* Default to 127.0.0.1 */
+ addr = 0x7F000001u; /* Default to 127.0.0.1 */
}
result = tor_malloc(sizeof(rend_service_port_config_t));
result->virtual_port = virtport;
result->real_port = realport;
- result->real_address = ntohl(addr);
+ result->real_address = addr;
return result;
}