From 47dc024f7eb268dca65949d68914aa29b2840711 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Sat, 16 Oct 2004 21:53:30 +0000 Subject: Change interface of parse_addr_port() to return address in host order, since most users seem to want that. svn:r2542 --- src/or/rendservice.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/or/rendservice.c') 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; } -- cgit v1.2.3-54-g00ecf